Tutorial ini uda ane coba dan work di hh ane yg EVERCOSS A7 JELLY BEAN 4.2.2....
- download bahan"nya...di...http://www.4shared.com/zip/7ltVutrUba/lcd_Density.html
tempatkan bahan" tersebut sesuai dgn tempatnya masing"...
Langkah pertama.....
-decompile Settings.apk nya....
- masuk ke Settings.apk\res\\values\\arrays.xml
tambahkan ini di baris terakhir...(bebas sih cuma biar rapi aja) sebelum </resources>
Code :
<string-array name="entries_lcd_density">
<item>240</item>
<item>242</item>
<item>244</item>
<item>246</item>
<item>248</item>
<item>250</item>
<item>252</item>
<item>254</item>
<item>256</item>
<item>258</item>
<item>260</item>
<item>262</item>
<item>264</item>
<item>266</item>
<item>268</item>
<item>270</item>
<item>272</item>
<item>274</item>
<item>276</item>
<item>278</item>
<item>280</item>
<item>282</item>
<item>284</item>
<item>285</item>
<item>286</item>
<item>288</item>
<item>290</item>
<item>292</item>
<item>294</item>
<item>296</item>
<item>298</item>
<item>300</item>
<item>302</item>
<item>304</item>
<item>306</item>
<item>308</item>
<item>310</item>
<item>312</item>
<item>314</item>
<item>316</item>
<item>318</item>
<item>320</item>
<item>322</item>
<item>324</item>
<item>326</item>
<item>328</item>
<item>330</item>
<item>332</item>
<item>334</item>
<item>336</item>
<item>338</item>
<item>340</item>
<item>342</item>
<item>344</item>
<item>346</item>
<item>348</item>
<item>350</item>
<item>352</item>
<item>354</item>
<item>356</item>
<item>358</item>
<item>360</item>
</string-array>\par
<string-array name="lcd_density_entries">
<item>160</item>
<item>182</item>
<item>200</item>
<item>220</item>
<item>240</item>
<item>245</item>
<item>268</item>
<item>280</item>
<item>300</item>
<item>320</item>
<item>340</item>
<item>361</item>
<item>420</item>
<item>480</item>
<item>@string/custom_density</item>
</string-array>
<string-array name="lcd_density_stock_entries">
<item>213 -- nexus7</item>
<item>240 -- hdpi</item>
<item>320 -- xhdpi</item>
<item>480 -- xxhdpi</item>
</string-array>
<string-array name="lcd_density_stock_values">
<item>213</item>
<item>240</item>
<item>320</item>
<item>480</item>
</string-array>
-tambahkan ini diSettings.apk/res/values/ids.xml
sama sebelum...</resources>
Code:
<item type="id" name="dpi">false</item>
<item type="id" name="dpi_edit">false</item>
-buka Settings.apk/res/values/strings.xml
tambahkan ini sebelum </resources>
Code:
<string name="title_ui">General UI</string>
<string name="title_ui_summary">Change the LCD Density</string>
<string name="dpi">DPI</string>
<string name="lcd_density_title">LCD Density</string>
<string name="lcd_density_summary">unknown</string>
<string name="current_lcd_density">"Current LCD Density: "</string>
<string name="lcd_density_wizard">LCD Density Wizard</string>
<string name="follow_through_title">Follow through!</string>
<string name="follow_through_summary">Make sure you follow the steps one-by-one and complete each one before proceeding to the next.</string>
<string name="stock_density_title">Change to preset values</string>
<string name="stock_density_summary">Tablets and older phones use 160. Most phones use 240.</string>
<string name="stock_density_changed_summary">"Density set to: "</string>
<string name="reboot_title">Reboot NOW!</string>
<string name="reboot_summary">Come back here after the reboot and complete the rest of the steps!</string>
<string name="clear_market_data_title">3. Clear all relevant market data.</string>
<string name="clear_market_data_summary">This step clears data from market, google play services and google services framework.</string>
<string name="clear_market_data_cleared">Data successfully cleared</string>
<string name="clear_market_data_donot_cleared">"Data couldn't be cleared, please clear it yourself!"</string>
<string name="reboot_cleardata_title">4. Reboot!</string>
<string name="reboot_cleardata_summary">Come back here after the reboot and complete the rest of the steps!</string>
<string name="open_market_title">5. Open Market and hit accept</string>
<string name="open_market_summary">Press back when done to return here.</string>
<string name="open_market_summary_could_not_open">"Couldn't open the market! If you're sure it's installed, open it yourself from the launcher."</string>
<string name="custom_density_title">Change density to whatever you like!</string>
<string name="custom_density_summary">Some values may cause compatibility issues with apps and the playstore, use at your own RISK!</string>
<string name="custom_density_summary_invalid">INVALID DENSITY!</string>
<string name="stock_density">320 stock</string>
<string name="custom_density">custom</string>
<string name="set_custom_density_title">Set custom density</string>
<string name="set_custom_density_set">Set</string>
<string name="custom_density_dialog_title">WARNING!</string>
<string name="custom_density_dialog_summary">Changing your LCD density can cause unexpected app behavior. If you encounter market app incompatibility please return here and restart the process from step 1.</string>
<string name="custom_density_dialog_button_got">Got it!</string>
<string name="custom_density_dialog_button_reboot">Reboot now</string>
<string name="su_dialog_error_title">Warning</string>
<string name="su_dialog_error_message">"An error occurred.
Please check for root access. To activate go into superuser settings and enable root access."</string>
<string name="lcd_warning_title">LCD Density Warning</string>
<string name="lcd_warning">Be Advised that it is recommended to use a Multi-DPI Play Store to avoid any issues with apps after changing your system density. Do you understand?</string>
<string name="lcd_warning_yes">YES</string>
<string name="lcd_warning_no">NO</string>
-buka Settings.apk/res/xml/display_settings.xml
tambahkan line ini sebelum... </PreferenceScreen>
Code:
<PreferenceScreen android:title="@string/lcd_density_title" android:key="lcd_density_setup" android:fragment="com.android.settings.adi.fragments.DensityChanger" />
</PreferenceScreen>
-di Settings.apk/AndroidManifest.xml
tambahkan line ini....
Code:
<activity android:label="@string/lcd_density_wizard" android:name=".fragments.DensityChanger">
<intent-filter>\par
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>\par
</activity>
- Decompile Settings.apk nya...
- Sign Settings.apk nya...
- dan lalu Recompile recompile lagi Settings.apk nya....
Langkah kedua....
samakan angka" dibawah ini dengan yg ada di public.xml Settings.apk agan" semua
-buka dulu Settings/smali/com/android/settings/adi/fragments
DensityChanger$1.smali
\tab #56\tab\tab 0x7f07083b\tab type="string" name="clear_market_data_cleared"
DensityChanger$4.smali
\tab #52\tab\tab 0x7f0a023b\tab type="id" name="dpi_edit"
\tab #120\tab 0x7f070844\tab type="string" name="custom_density_summary_invalid"
DensityChanger$ClearMarketDataTask.smali
\tab #582\tab 0x7f07083b\tab type="string" name="clear_market_data_cleared"
DensityChanger.smali
\tab #199\tab 0x7f07084d\tab type="string" name="su_dialog_error_title"
\tab #204\tab 0x7f07084e\tab type="string" name="su_dialog_error_message"
\tab #209\tab 0x7f070487\tab type="string" name="ok"
\tab #239\tab 0x7f050058\tab type="xml" name="adi_lcd_density_setup"
\tab #277\tab 0x7f07084f\tab type="string" name="lcd_warning_title"
\tab #283\tab 0x7f070850\tab type="string" name="lcd_warning"
\tab #289\tab 0x7f070852\tab type="string" name="lcd_warning_no"
\tab #299\tab 0x7f070851\tab type="string" name="lcd_warning_yes"
\tab #388\tab 0x7f070486\tab type="string" name="cancel"
\tab #407\tab 0x7f040095\tab type="layout" name="adi_alert_dialog_text_entry"
\tab #427\tab 0x7f070847\tab type="string" name="set_custom_density_title"
\tab #445\tab 0x7f070848\tab type="string" name="set_custom_density_set"
\tab #496\tab 0x7f070849\tab type="string" name="custom_density_dialog_title"
\tab #510\tab 0x7f07084a\tab type="string" name="custom_density_dialog_summary"
\tab #530\tab 0x7f07084b\tab type="string" name="custom_density_dialog_button_got"
\tab #548\tab 0x7f07084c\tab type="string" name="custom_density_dialog_button_reboot"
\tab #627\tab 0x7f070846\tab type="string" name="custom_density"
\tab #709\tab 0x7f070836\tab type="string" name="stock_density_changed_summary"
\tab #887\tab 0x7f070841\tab type="string" name="open_market_summary_could_not_open"
NOTE!
contoh....
DensityChanger$1.smali\par
#56\tab 0x7f07083b\tab type="string" name="clear_market_data_cleared"\par
tab #56 = posisi line di smali nya...
tab 0x7f07083b = nah itu angka" yg harus diganti dengan yg ada di public.xml agan" semua...
type="string" name="open_market_summary_could_not_open" = di public punya agan ini yg harus dicari lalu angka nya yg 7f.....ini lah yg menggantikan nanti nya angka" yg 7f.....di smali...
- Decompile Settings.apk nya...
- Sign Settings.apk nya...
- Terakhir Push Settings.apk ke system/app...
done
selamat mencoba dan jangan patah semangat klo masih gagal...dan biasakan lah membaca document di group sebelum bertanya sesuatu...
tutorial ane sadur dari....http://forum.xda-developers.com/showthread.php?p=51308318
Kamis, 17 April 2014
Kamis, 27 Maret 2014
SENSE RECENT APPS...
he..he...he...coba-coba nulis lagi lah..sekarang kita coba bikin sense recent apps ya...
-bahan-bahan...
1.apktool...(mo di hh...kompi ato lapy..)
2.framework-res.apk...
3.SystemUI.apk...
4.rokok..(buat yg ngerokok..dan klo berhasil...bisa dong kirim ke ane...he..he..he..)
5.cermin...
6.brain...(he..he..he..yg ini mah ngikutin para mastah di xda...)
eksekusi...(sumpah bingung mo kasih judul ap jd pake sksekusi aja...)
pertama tama kita decompile dulu framework-res.apk nya pake apktool...dah pada tahu khan cara pake apktool...(klo g tahu cari di mbah gugel ok...)klo dah dah beres prose decompile nya...masuk ke RES/VALUES/DIMENS.XML...
SAMAKAN DENGAN YG DIBAWAH INI...:
<dimen name="thumbnail_height">267.0dip</dimen>
<dimen name="thumbnail_width">168.0dip</dimen>
klo sudah tinggal recompile lg framework-res.apk nya...
sip...langkah pertama sudah kelar..tinggal sekarang masuk ke langkah eksekusi kedua...
setelah framework-res.apk nya selesai...sekarang kita decompile SystemUI.apk nya...
masuk ke RES/VALUES/BOOL.XML...
SAMAKAN DENGAN YG DIBAWAH INI...:
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
SAVE BOOL.XML NYA...
SELANJUT NYA MASIH DI RES/VALUES CARI IDS.XML...
TAMBAHKAN INI...
<item type="id" name="recents_transition_background" />
<item type="id" name="recents_transition_placeholder_icon" />
<item type="id" name="recents_clear" />
MASIH DI RES/VALUES..CARI STRING.XML...
TAMBAHKAN INI...
<string name="recent_apps_title">Recent apps</string>
SEKARANG MASUK KE RES/LAYOUT/STATUS_BAR_NO_RECENT_APPS.XML...
GANTI ISI NYA SEPERTI INI...
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="@*android:color/white" android:gravity="center_horizontal" android:layout_gravity="center" android:id="@id/recents_no_apps_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
SEBENARNYA SIH ITU YG DIATAS CUMA GANTI @*ANDROID:COLOR/WHITE AJA YG LAIN NYA SAMA KO... CUMA BIAR LEBIH GAMPANG NGIKUTIN TUTOR NYA AJA...
SELANJUT NYA MASUK KE RES/.LAYOUT/STATUS_BAR_NO_EXPANDED_HEADER.XML...
PAS DI LINE INI PERHATIKAN YA...
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
PERHATIKAN YG ANDROID:BACKGROUND="FF000000" ITU AJA KO YG HARUS DISAMAKAN...YG LAIN NYA TIDAK...
SEKARANG MASUK KE RES/LAYOUT/STATUS_BAR_RECENT_ITEM.XML....
NAH KLO YG INI HARUS JD GINI ISI NYA....
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingTop="@dimen/status_bar_recents_item_padding" android:paddingBottom="@dimen/status_bar_recents_item_padding" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@*android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginRight="15.0dip" android:foreground="#00000000" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="192.0dip" android:layout_height="305.0dip" android:layout_marginTop="15.0dip" android:layout_marginBottom="15.0dip" />
</FrameLayout>
<ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="405.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
SAYA ASUMSIKAN UDA PADA NGERTI Y TATA LETAK XML NYA...
TRUS SEKARANG MASUK KE RES/LAYOUT/STATUS_BAR_RECENT_PANEL.XML...
YG INI JUGA HARUS BEGINI ISI NYA...
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:background="@drawable/sense_port" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<TextView android:textSize="18.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="43.0dip" android:text="@string/recent_apps_title" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
SAMA INI JUGA DAH PADA NGERTI KAN TATA LETAK XML NYA...
MASUK KE RES/LAYOUT-LAND/STATUS_BAR_RECENT_ITEM.XML...
ISINYA HARUS SEPERTI INI...
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@*android:dimen/navigation_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginRight="15.0dip" android:foreground="#00000000" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="137.0dip" android:layout_height="217.0dip" android:layout_marginTop="10.0dip" android:layout_marginBottom="20.0dip" />
</FrameLayout>
<ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="50.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="10.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="35.0dip" android:maxHeight="35.0dip" android:layout_below="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="70.0dip" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:layout_toRightOf="@id/app_icon" android:layout_below="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:visibility="gone" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
MASUK KE RES/LAYOUT-LAND/ STATUS-BAR-RECENT-PANEL.XML...
ISINYA HARUS GINI....
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:background="@drawable/sense_land" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="#00000000" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|right|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<TextView android:textSize="18.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:text="@string/recent_apps_title" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
SETELAH DI SAVE SEMUA...
MASUK KE SMALI/ COM/ANDROID/SYSTEMUI/RECENT/RECENTSPANELVIEW.SMALI.smali:
CARI...
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
NAH DARI SITU SAMPAI .END METHOD GANTI DENGAN INI....
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
.locals 30
.parameter "h"
.parameter "thumbnail"
.parameter "show"
.parameter "anim"
.prologue
.line 783
if-eqz p2, :cond_4
.line 787
const/16 v26, 0x4
.line 789
.local v26, reflectionGap:I
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v6
.line 780
.local v6, width:I
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getHeight()I
move-result v24
.line 782
.local v24, height:I
new-instance v8, Landroid/graphics/Matrix;
invoke-direct {v8}, Landroid/graphics/Matrix;-><init>()V
.line 783
.local v8, matrix:Landroid/graphics/Matrix;
const/high16 v3, 0x3f80
const/high16 v4, -0x4080
invoke-virtual {v8, v3, v4}, Landroid/graphics/Matrix;->preScale(FF)Z
.line 785
const/4 v4, 0x0
mul-int/lit8 v3, v24, 0x2
div-int/lit8 v5, v3, 0x3
div-int/lit8 v7, v24, 0x3
const/4 v9, 0x0
move-object/from16 v3, p2
invoke-static/range {v3 .. v9}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;
move-result-object v27
.line 786
.local v27, reflectionImage:Landroid/graphics/Bitmap;
div-int/lit8 v3, v24, 0x3
add-int v3, v3, v24
sget-object v4, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
invoke-static {v6, v3, v4}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
move-result-object v23
.line 788
.local v23, bitmapWithReflection:Landroid/graphics/Bitmap;
new-instance v9, Landroid/graphics/Canvas;
move-object/from16 v0, v23
invoke-direct {v9, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
.line 789
.local v9, canvas:Landroid/graphics/Canvas;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
move-object/from16 v0, p2
invoke-virtual {v9, v0, v3, v4, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
.line 800
new-instance v14, Landroid/graphics/Paint;
invoke-direct {v14}, Landroid/graphics/Paint;-><init>()V
.line 801
.local v14, defaultPaint:Landroid/graphics/Paint;
const/4 v10, 0x0
move/from16 v0, v24
int-to-float v11, v0
int-to-float v12, v6
add-int/lit8 v3, v24, 0x4
int-to-float v13, v3
invoke-virtual/range {v9 .. v14}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 802
const/4 v3, 0x0
add-int/lit8 v4, v24, 0x4
int-to-float v4, v4
const/4 v5, 0x0
move-object/from16 v0, v27
invoke-virtual {v9, v0, v3, v4, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
.line 804
new-instance v25, Landroid/graphics/Paint;
invoke-direct/range {v25 .. v25}, Landroid/graphics/Paint;-><init>()V
.line 805
.local v25, paint:Landroid/graphics/Paint;
new-instance v15, Landroid/graphics/LinearGradient;
const/16 v16, 0x0
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
int-to-float v0, v3
move/from16 v17, v0
const/16 v18, 0x0
invoke-virtual/range {v23 .. v23}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
add-int/lit8 v3, v3, 0x4
int-to-float v0, v3
move/from16 v19, v0
const v20, 0x70ffffff
const v21, 0xffffff
sget-object v22, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;
invoke-direct/range {v15 .. v22}, Landroid/graphics/LinearGradient;-><init>(FFFFIILandroid/graphics/Shader$TileMode;)V
.line 808
.local v15, shader:Landroid/graphics/LinearGradient;
move-object/from16 v0, v25
invoke-virtual {v0, v15}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;
.line 809
new-instance v3, Landroid/graphics/PorterDuffXfermode;
sget-object v4, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v3, v4}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V
move-object/from16 v0, v25
invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;
.line 810
const/16 v17, 0x0
move/from16 v0, v24
int-to-float v0, v0
move/from16 v18, v0
int-to-float v0, v6
move/from16 v19, v0
invoke-virtual/range {v23 .. v23}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
add-int/lit8 v3, v3, 0x4
int-to-float v0, v3
move/from16 v20, v0
move-object/from16 v16, v9
move-object/from16 v21, v25
invoke-virtual/range {v16 .. v21}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 813
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
move-object/from16 v0, v23
invoke-virtual {v3, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V
.line 817
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
if-eqz v3, :cond_0
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I
move-result v3
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v4
if-ne v3, v4, :cond_0
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getHeight()I
move-result v4
if-eq v3, v4, :cond_1
.line 820
:cond_0
move-object/from16 v0, p0
iget-boolean v3, v0, Lcom/android/systemui/recent/RecentsPanelView;->mFitThumbnailToXY:Z
if-eqz v3, :cond_5
.line 821
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
const/high16 v4, 0x41c8
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setRotationY(F)V
.line 830
:cond_1
:goto_0
if-eqz p3, :cond_3
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailView:Landroid/view/View;
invoke-virtual {v3}, Landroid/view/View;->getVisibility()I
move-result v3
if-eqz v3, :cond_3
.line 831
if-eqz p4, :cond_2
.line 833
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailView:Landroid/view/View;
move-object/from16 v0, p0
iget-object v4, v0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;
const v5, 0x7f05000c
invoke-static {v4, v5}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v4
invoke-virtual {v3, v4}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V
.line 837
:cond_2
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailView:Landroid/view/View;
const/4 v4, 0x0
invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V
.line 839
:cond_3
move-object/from16 v0, p2
move-object/from16 v1, p1
iput-object v0, v1, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
.line 841
.end local v6 #width:I
.end local v8 #matrix:Landroid/graphics/Matrix;
.end local v9 #canvas:Landroid/graphics/Canvas;
.end local v14 #defaultPaint:Landroid/graphics/Paint;
.end local v15 #shader:Landroid/graphics/LinearGradient;
.end local v23 #bitmapWithReflection:Landroid/graphics/Bitmap;
.end local v24 #height:I
.end local v25 #paint:Landroid/graphics/Paint;
.end local v26 #reflectionGap:I
.end local v27 #reflectionImage:Landroid/graphics/Bitmap;
:cond_4
return-void
.line 823
.restart local v6 #width:I
.restart local v8 #matrix:Landroid/graphics/Matrix;
.restart local v9 #canvas:Landroid/graphics/Canvas;
.restart local v14 #defaultPaint:Landroid/graphics/Paint;
.restart local v15 #shader:Landroid/graphics/LinearGradient;
.restart local v23 #bitmapWithReflection:Landroid/graphics/Bitmap;
.restart local v24 #height:I
.restart local v25 #paint:Landroid/graphics/Paint;
.restart local v26 #reflectionGap:I
.restart local v27 #reflectionImage:Landroid/graphics/Bitmap;
:cond_5
new-instance v29, Landroid/graphics/Matrix;
invoke-direct/range {v29 .. v29}, Landroid/graphics/Matrix;-><init>()V
.line 824
.local v29, scaleMatrix:Landroid/graphics/Matrix;
move-object/from16 v0, p0
iget v3, v0, Lcom/android/systemui/recent/RecentsPanelView;->mThumbnailWidth:I
int-to-float v3, v3
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v4
int-to-float v4, v4
div-float v28, v3, v4
.line 825
.local v28, scale:F
move-object/from16 v0, v29
move/from16 v1, v28
move/from16 v2, v28
invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->setScale(FF)V
.line 826
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
sget-object v4, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 827
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
move-object/from16 v0, v29
invoke-virtual {v3, v0}, Landroid/widget/ImageView;->setImageMatrix(Landroid/graphics/Matrix;)V
goto :goto_0
.end method
WARNING...JANGAN COPY PASTE SCRIPT NYA LANGSUNG...TULIS LAGI Y...SOAL NYA KLO COPAS PENGALAMAN ANE SUKA GAGAL...
DISITU NANTI AGAN AGAN SEMUA AKAN MENEMUKAN...
const v5, 0x7f04000f------>NAH YG 7F04000F SAMAKAN DI SYSTEMUI/RES/VALUES/PUBLIC.XML...= "notification_adaptive_wrapper"...
SAVE...RECOMPILE DEH SYSTEMUI NYA...
NB...JANGAN LUPA UTK MEMASUKAN 2 PNG YG ANE KASIH DI DRAWABLE-NODPI...
INI LINK BUAT BAHAN BAHAN NYA....
http://www.4shared.com/zip/shZqr7VUba/bahan.html
klo masih gagal disinilah guna nya cermin...berkaca lah siapa tahu agan agan nya kurang ganteng...he...he...he...
dan yg pasti jangan takut gagal...try n' error lah prisip nya...ok...
Do With Your Own Risk...
1.apktool...(mo di hh...kompi ato lapy..)
2.framework-res.apk...
3.SystemUI.apk...
4.rokok..(buat yg ngerokok..dan klo berhasil...bisa dong kirim ke ane...he..he..he..)
5.cermin...
6.brain...(he..he..he..yg ini mah ngikutin para mastah di xda...)
eksekusi...(sumpah bingung mo kasih judul ap jd pake sksekusi aja...)
pertama tama kita decompile dulu framework-res.apk nya pake apktool...dah pada tahu khan cara pake apktool...(klo g tahu cari di mbah gugel ok...)klo dah dah beres prose decompile nya...masuk ke RES/VALUES/DIMENS.XML...
SAMAKAN DENGAN YG DIBAWAH INI...:
<dimen name="thumbnail_height">267.0dip</dimen>
<dimen name="thumbnail_width">168.0dip</dimen>
klo sudah tinggal recompile lg framework-res.apk nya...
sip...langkah pertama sudah kelar..tinggal sekarang masuk ke langkah eksekusi kedua...
setelah framework-res.apk nya selesai...sekarang kita decompile SystemUI.apk nya...
masuk ke RES/VALUES/BOOL.XML...
SAMAKAN DENGAN YG DIBAWAH INI...:
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
SAVE BOOL.XML NYA...
SELANJUT NYA MASIH DI RES/VALUES CARI IDS.XML...
TAMBAHKAN INI...
<item type="id" name="recents_transition_background" />
<item type="id" name="recents_transition_placeholder_icon" />
<item type="id" name="recents_clear" />
MASIH DI RES/VALUES..CARI STRING.XML...
TAMBAHKAN INI...
<string name="recent_apps_title">Recent apps</string>
SEKARANG MASUK KE RES/LAYOUT/STATUS_BAR_NO_RECENT_APPS.XML...
GANTI ISI NYA SEPERTI INI...
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="@*android:color/white" android:gravity="center_horizontal" android:layout_gravity="center" android:id="@id/recents_no_apps_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
SEBENARNYA SIH ITU YG DIATAS CUMA GANTI @*ANDROID:COLOR/WHITE AJA YG LAIN NYA SAMA KO... CUMA BIAR LEBIH GAMPANG NGIKUTIN TUTOR NYA AJA...
SELANJUT NYA MASUK KE RES/.LAYOUT/STATUS_BAR_NO_EXPANDED_HEADER.XML...
PAS DI LINE INI PERHATIKAN YA...
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
PERHATIKAN YG ANDROID:BACKGROUND="FF000000" ITU AJA KO YG HARUS DISAMAKAN...YG LAIN NYA TIDAK...
SEKARANG MASUK KE RES/LAYOUT/STATUS_BAR_RECENT_ITEM.XML....
NAH KLO YG INI HARUS JD GINI ISI NYA....
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingTop="@dimen/status_bar_recents_item_padding" android:paddingBottom="@dimen/status_bar_recents_item_padding" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@*android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginRight="15.0dip" android:foreground="#00000000" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="192.0dip" android:layout_height="305.0dip" android:layout_marginTop="15.0dip" android:layout_marginBottom="15.0dip" />
</FrameLayout>
<ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="405.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
SAYA ASUMSIKAN UDA PADA NGERTI Y TATA LETAK XML NYA...
TRUS SEKARANG MASUK KE RES/LAYOUT/STATUS_BAR_RECENT_PANEL.XML...
YG INI JUGA HARUS BEGINI ISI NYA...
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:background="@drawable/sense_port" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<TextView android:textSize="18.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="43.0dip" android:text="@string/recent_apps_title" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
SAMA INI JUGA DAH PADA NGERTI KAN TATA LETAK XML NYA...
MASUK KE RES/LAYOUT-LAND/STATUS_BAR_RECENT_ITEM.XML...
ISINYA HARUS SEPERTI INI...
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@*android:dimen/navigation_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginRight="15.0dip" android:foreground="#00000000" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="137.0dip" android:layout_height="217.0dip" android:layout_marginTop="10.0dip" android:layout_marginBottom="20.0dip" />
</FrameLayout>
<ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="50.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="10.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="35.0dip" android:maxHeight="35.0dip" android:layout_below="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="70.0dip" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:layout_toRightOf="@id/app_icon" android:layout_below="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:visibility="gone" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
MASUK KE RES/LAYOUT-LAND/ STATUS-BAR-RECENT-PANEL.XML...
ISINYA HARUS GINI....
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:background="@drawable/sense_land" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="#00000000" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|right|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<TextView android:textSize="18.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:text="@string/recent_apps_title" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
SETELAH DI SAVE SEMUA...
MASUK KE SMALI/ COM/ANDROID/SYSTEMUI/RECENT/RECENTSPANELVIEW.SMALI.smali:
CARI...
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
NAH DARI SITU SAMPAI .END METHOD GANTI DENGAN INI....
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
.locals 30
.parameter "h"
.parameter "thumbnail"
.parameter "show"
.parameter "anim"
.prologue
.line 783
if-eqz p2, :cond_4
.line 787
const/16 v26, 0x4
.line 789
.local v26, reflectionGap:I
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v6
.line 780
.local v6, width:I
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getHeight()I
move-result v24
.line 782
.local v24, height:I
new-instance v8, Landroid/graphics/Matrix;
invoke-direct {v8}, Landroid/graphics/Matrix;-><init>()V
.line 783
.local v8, matrix:Landroid/graphics/Matrix;
const/high16 v3, 0x3f80
const/high16 v4, -0x4080
invoke-virtual {v8, v3, v4}, Landroid/graphics/Matrix;->preScale(FF)Z
.line 785
const/4 v4, 0x0
mul-int/lit8 v3, v24, 0x2
div-int/lit8 v5, v3, 0x3
div-int/lit8 v7, v24, 0x3
const/4 v9, 0x0
move-object/from16 v3, p2
invoke-static/range {v3 .. v9}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;
move-result-object v27
.line 786
.local v27, reflectionImage:Landroid/graphics/Bitmap;
div-int/lit8 v3, v24, 0x3
add-int v3, v3, v24
sget-object v4, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
invoke-static {v6, v3, v4}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
move-result-object v23
.line 788
.local v23, bitmapWithReflection:Landroid/graphics/Bitmap;
new-instance v9, Landroid/graphics/Canvas;
move-object/from16 v0, v23
invoke-direct {v9, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
.line 789
.local v9, canvas:Landroid/graphics/Canvas;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
move-object/from16 v0, p2
invoke-virtual {v9, v0, v3, v4, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
.line 800
new-instance v14, Landroid/graphics/Paint;
invoke-direct {v14}, Landroid/graphics/Paint;-><init>()V
.line 801
.local v14, defaultPaint:Landroid/graphics/Paint;
const/4 v10, 0x0
move/from16 v0, v24
int-to-float v11, v0
int-to-float v12, v6
add-int/lit8 v3, v24, 0x4
int-to-float v13, v3
invoke-virtual/range {v9 .. v14}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 802
const/4 v3, 0x0
add-int/lit8 v4, v24, 0x4
int-to-float v4, v4
const/4 v5, 0x0
move-object/from16 v0, v27
invoke-virtual {v9, v0, v3, v4, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
.line 804
new-instance v25, Landroid/graphics/Paint;
invoke-direct/range {v25 .. v25}, Landroid/graphics/Paint;-><init>()V
.line 805
.local v25, paint:Landroid/graphics/Paint;
new-instance v15, Landroid/graphics/LinearGradient;
const/16 v16, 0x0
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
int-to-float v0, v3
move/from16 v17, v0
const/16 v18, 0x0
invoke-virtual/range {v23 .. v23}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
add-int/lit8 v3, v3, 0x4
int-to-float v0, v3
move/from16 v19, v0
const v20, 0x70ffffff
const v21, 0xffffff
sget-object v22, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;
invoke-direct/range {v15 .. v22}, Landroid/graphics/LinearGradient;-><init>(FFFFIILandroid/graphics/Shader$TileMode;)V
.line 808
.local v15, shader:Landroid/graphics/LinearGradient;
move-object/from16 v0, v25
invoke-virtual {v0, v15}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;
.line 809
new-instance v3, Landroid/graphics/PorterDuffXfermode;
sget-object v4, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v3, v4}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V
move-object/from16 v0, v25
invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;
.line 810
const/16 v17, 0x0
move/from16 v0, v24
int-to-float v0, v0
move/from16 v18, v0
int-to-float v0, v6
move/from16 v19, v0
invoke-virtual/range {v23 .. v23}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
add-int/lit8 v3, v3, 0x4
int-to-float v0, v3
move/from16 v20, v0
move-object/from16 v16, v9
move-object/from16 v21, v25
invoke-virtual/range {v16 .. v21}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 813
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
move-object/from16 v0, v23
invoke-virtual {v3, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V
.line 817
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
if-eqz v3, :cond_0
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I
move-result v3
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v4
if-ne v3, v4, :cond_0
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getHeight()I
move-result v4
if-eq v3, v4, :cond_1
.line 820
:cond_0
move-object/from16 v0, p0
iget-boolean v3, v0, Lcom/android/systemui/recent/RecentsPanelView;->mFitThumbnailToXY:Z
if-eqz v3, :cond_5
.line 821
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
const/high16 v4, 0x41c8
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setRotationY(F)V
.line 830
:cond_1
:goto_0
if-eqz p3, :cond_3
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailView:Landroid/view/View;
invoke-virtual {v3}, Landroid/view/View;->getVisibility()I
move-result v3
if-eqz v3, :cond_3
.line 831
if-eqz p4, :cond_2
.line 833
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailView:Landroid/view/View;
move-object/from16 v0, p0
iget-object v4, v0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;
const v5, 0x7f05000c
invoke-static {v4, v5}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v4
invoke-virtual {v3, v4}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V
.line 837
:cond_2
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailView:Landroid/view/View;
const/4 v4, 0x0
invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V
.line 839
:cond_3
move-object/from16 v0, p2
move-object/from16 v1, p1
iput-object v0, v1, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
.line 841
.end local v6 #width:I
.end local v8 #matrix:Landroid/graphics/Matrix;
.end local v9 #canvas:Landroid/graphics/Canvas;
.end local v14 #defaultPaint:Landroid/graphics/Paint;
.end local v15 #shader:Landroid/graphics/LinearGradient;
.end local v23 #bitmapWithReflection:Landroid/graphics/Bitmap;
.end local v24 #height:I
.end local v25 #paint:Landroid/graphics/Paint;
.end local v26 #reflectionGap:I
.end local v27 #reflectionImage:Landroid/graphics/Bitmap;
:cond_4
return-void
.line 823
.restart local v6 #width:I
.restart local v8 #matrix:Landroid/graphics/Matrix;
.restart local v9 #canvas:Landroid/graphics/Canvas;
.restart local v14 #defaultPaint:Landroid/graphics/Paint;
.restart local v15 #shader:Landroid/graphics/LinearGradient;
.restart local v23 #bitmapWithReflection:Landroid/graphics/Bitmap;
.restart local v24 #height:I
.restart local v25 #paint:Landroid/graphics/Paint;
.restart local v26 #reflectionGap:I
.restart local v27 #reflectionImage:Landroid/graphics/Bitmap;
:cond_5
new-instance v29, Landroid/graphics/Matrix;
invoke-direct/range {v29 .. v29}, Landroid/graphics/Matrix;-><init>()V
.line 824
.local v29, scaleMatrix:Landroid/graphics/Matrix;
move-object/from16 v0, p0
iget v3, v0, Lcom/android/systemui/recent/RecentsPanelView;->mThumbnailWidth:I
int-to-float v3, v3
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v4
int-to-float v4, v4
div-float v28, v3, v4
.line 825
.local v28, scale:F
move-object/from16 v0, v29
move/from16 v1, v28
move/from16 v2, v28
invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->setScale(FF)V
.line 826
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
sget-object v4, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 827
move-object/from16 v0, p1
iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
move-object/from16 v0, v29
invoke-virtual {v3, v0}, Landroid/widget/ImageView;->setImageMatrix(Landroid/graphics/Matrix;)V
goto :goto_0
.end method
WARNING...JANGAN COPY PASTE SCRIPT NYA LANGSUNG...TULIS LAGI Y...SOAL NYA KLO COPAS PENGALAMAN ANE SUKA GAGAL...
DISITU NANTI AGAN AGAN SEMUA AKAN MENEMUKAN...
const v5, 0x7f04000f------>NAH YG 7F04000F SAMAKAN DI SYSTEMUI/RES/VALUES/PUBLIC.XML...= "notification_adaptive_wrapper"...
SAVE...RECOMPILE DEH SYSTEMUI NYA...
NB...JANGAN LUPA UTK MEMASUKAN 2 PNG YG ANE KASIH DI DRAWABLE-NODPI...
INI LINK BUAT BAHAN BAHAN NYA....
http://www.4shared.com/zip/shZqr7VUba/bahan.html
klo masih gagal disinilah guna nya cermin...berkaca lah siapa tahu agan agan nya kurang ganteng...he...he...he...
dan yg pasti jangan takut gagal...try n' error lah prisip nya...ok...
Do With Your Own Risk...
Selasa, 25 Maret 2014
android...
fb UI style...sebuah theming/mode SYSTEMUI yg lg hangat" nya beredar diantara para oprekers android,setahu ane ini theming/mode muncul pertama kali di custom rom haiyan...sebuah rom yg bersystem os android ginggerbread...thema/mode ini menampilkan dua pict sekaligus seperti di time line nya facebook...
sebagai seorang bapak yg jg kebetulan pegang hh android pengen dong ikutan tren fb_UI style nya...setelah gugling" n' searching" akhir nya dpt juga SystemUI nya...
setelah beberapa hari ane pelajari dan bertanya kpd para mastah/master akhir nya dgn selamat itu SystemUI fb style nya jd juga...dan uda bbrp hari ini nongkrong di hh kesayangan ane yg walaupun product local tapi yah yg penting ANDROID...:D ƗƗɐƗƗɐƗƗɐƗƗɐ :D ƗƗɐƗƗɐƗƗɐƗƗɐ :D...
cuma sayang...fb style ni pake apk pendukung lagi yaitu lenox_label.apk sama nemesis.apk...tahu kan klo ada apk lagi berarti nambah lagi kerja hh nya...tapi tenang kan dah banyak aplikasi swap swap an yg beredar betul g...up's...sorry malah jd ke swap swap an y...gini jd fb UI style tu menggabungkan dua apk penampil gambar dalam satu frame...yg satu buat gambar yg gede nya dan yg satu lagi buat gambar profile nya...dah dulu deh nulis nya...ane bukan seorng penulis...ane hanya coba coba aja bikin blog....:D ƗƗɐƗƗɐƗƗɐƗƗɐ :D ƗƗɐƗƗɐƗƗɐƗƗɐ :D...biarkan pict ini yg menjelaskan seterus nya...nanti klo dah bisa nulis nya ane bikin deh tut nya y...sekarang mah lg kerja dulu nyari duit buat anak ama istri ane...
sebagai seorang bapak yg jg kebetulan pegang hh android pengen dong ikutan tren fb_UI style nya...setelah gugling" n' searching" akhir nya dpt juga SystemUI nya...
setelah beberapa hari ane pelajari dan bertanya kpd para mastah/master akhir nya dgn selamat itu SystemUI fb style nya jd juga...dan uda bbrp hari ini nongkrong di hh kesayangan ane yg walaupun product local tapi yah yg penting ANDROID...:D ƗƗɐƗƗɐƗƗɐƗƗɐ :D ƗƗɐƗƗɐƗƗɐƗƗɐ :D...
cuma sayang...fb style ni pake apk pendukung lagi yaitu lenox_label.apk sama nemesis.apk...tahu kan klo ada apk lagi berarti nambah lagi kerja hh nya...tapi tenang kan dah banyak aplikasi swap swap an yg beredar betul g...up's...sorry malah jd ke swap swap an y...gini jd fb UI style tu menggabungkan dua apk penampil gambar dalam satu frame...yg satu buat gambar yg gede nya dan yg satu lagi buat gambar profile nya...dah dulu deh nulis nya...ane bukan seorng penulis...ane hanya coba coba aja bikin blog....:D ƗƗɐƗƗɐƗƗɐƗƗɐ :D ƗƗɐƗƗɐƗƗɐƗƗɐ :D...biarkan pict ini yg menjelaskan seterus nya...nanti klo dah bisa nulis nya ane bikin deh tut nya y...sekarang mah lg kerja dulu nyari duit buat anak ama istri ane...
test...
test lah....ngblog teh kmh...btw memang hidup itu indah klo kita memang mau belajar dan belajar...hep sakitu w heula...ntar diterusin lagi...
Langganan:
Komentar (Atom)
