Posted by : Derry Adrian
Rabu, 04 Juni 2014
Kali ini ane bakalan share lenox label...lansung ke tkp
SS:
Bahan :
Tutorial :
1.Decompile SystemUI.apk
2.Download bahan di atas lalu Taro folder smali pada tempat ny
3.Ke res/values/ids.xml...lalu tambah kan kode ini sbelum </resources>
<item type="id" name="lenoxlabel">false</item> <item type="id" name="lenoxpic">false</item>
4.lalu ke res/layout/statusbar.xml....cari kode ini
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
taro kode ini di atas kode d atas
<com.lenox.Lenox_Label.lenoxpicture android:layout_gravity="left" android:id="@id/lenoxpic" android:layout_width="wrap_content" android:layout_height="18.0dip" android:scaleType="centerInside" /> <com.lenox.Lenox_Label.lenoxlabel android:id="@id/lenoxlabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_toRightOf="@id/lenoxpic" />
5.save semua...lalu recompile ui dan decompile lagi
6.buka res/values/public.xml...cari kode ini dan catat angka id nya
<public type="id" name="lenoxlabel" id="0x7xxxx" <public type="id" name="lenoxpic" id="0x7xxxxx"
7.buka smali/com/lenox/Lenox_Label/lenoxlabel.smal...cari kode ini
.line 17 const v7, 0x7f090036
ganti angka id d atas dengan angka id kode ini
<public type="id" name="lenoxlabel" id="0x7xxxx"
8.save..lalu buka juga lenoxpicture.smali..lalu cari
.line 15 const v4, 0x7f090037
ganti angka id d atas dengan angka id kode ini
<public type="id" name="lenoxpic" id="0x7xxxxx"
9.save semua dan recompile ui.
10.Terakhir..kita buat shorcut apk ini di settings..decompile settings.apk (dari hh kalian)
11.Ke res/xml/settings.xml dan taro kode ini sbelum </PreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="Lenox Label" settings:icon="@drawable/ic_settings_about"> <intent android:targetPackage="com.lenox.Lenox_Label" android:action="android.intent.action.MAIN" android:targetClass="com.lenox.Lenox_Label.MyActivity" /> </com.android.settings.IconPreferenceScreen>
12.Save dan recompile settings...kalu udh semua push ui dan settings...jangan lupa lenox_label.apk di instal
Sumber :
http://forum.xda-developers.com/showthread.php?t=2533188
- Back to Home »
- Tutorial »
- [[Tutorial]] Membuat Lenox Label Di Statusbar (Add label, picture to statusbar without rebooting)
