Posted by : Derry Adrian
Minggu, 01 Juni 2014
Salam para opreaker yang baik hati nya :)...di kesempatan kali ini ane bakalan share tutorial bkin 2 layout SystemUI...yah langsung simak saja.
SS
Bahan :
SystemUI.apk
Tutorial :
1.Decompile SystemUI.apk
2.Taruh bahan smali + sesajen ke dalam folder systemui
3.Lalu ke res/layout/statusbar_expanded.xml
4..Buka statusbar_expanded.xml lalu kalian akan menemukan kode ini
xmlns:android="http://schemas.android.com/apk/res/android">
5.Taro kode ini sesudah script di atas.
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"> <include layout="@layout/header" android:id="@id/headerid" android:layout_width="fill_parent" android:layout_height="48.0dip" /> </RelativeLayout> <com.pineapple.PineappleLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <include layout="@layout/quickpanel_quick_settings_secondlayout" /> </LinearLayout>
6. Dan sebelum kode ini
</com.android.systemui.statusbar.ExpandedView>
7. Tambahkan kode ini...lalu save.
</com.pineapple.PineappleLayout>
8.Lalu buka res/values/ids.xml...Tambah kode ini...lalu save
<item type="id" name="headerid">false</item> <item type="id" name="clock">false</item> <item type="id" name="panel">false</item>
9.Terus ke res/values/strings.xml...tambah ini...lalu save
<string name="statusbardateformat">"%1$s %2$s"</string>
10.Recompile systemui.apk lalu decompile lagi
11.Setelah di decompile lagi...buka ke res/values/public.xml....cari ini
<public type="drawable" name="btn_tg"
<public type="drawable" name="btn_toggles_normal"
<public type="drawable" name="btn_toggles_normal"
12.Ke smali/com/pineapple/Secondlayout.smali...buka itu..lalu cari
0x7f020180
13.Ganti kode tersebut dengan kode id public
<public type="drawable" name="btn_toggles_normal"
14.Cari juga kode ini
0x7f02017f
15.Ganti kode tersebut dengan kode id public <public type="drawable" name="btn_tg" .....kalo sudah save
16. Ke /smali/com/android/systemui/statusbar/policy/DateView..buka itu...dan cari
0x7f07002a
17. Ganti kode tersebut dengan id public <public type="string" name="statusbardateformat"....kalo sudah save
18.Recompile UI
Sumber :
http://forum.xda-developers.com/showthread.php?t=2354147
kunjungan awal sob :v mantap tuts nya
BalasHapus