logo

Friday 9 May 2014

[TUTOR] Menambahkan Carrier Logo dan Carrier Name di StatusBar

. Carrier Logo


a. - Decompile Systemui pke apktool

    - Lihat res/layout/statusbar.xml

    - Buka statusbar.xml dengan notepad ++

copas line ini :

com.android.systemui.statusbar.CarrierLabel android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textColor="#00fdfdfd" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:background="@drawable/logo" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" /


diatas line:


com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" /


b. Buka res/values/ids.xml


copaskan line ini:

item type="id" name="carrier_label_layout">false


di bagian paling bawah di ids.xml


c. Buka smali/com/android/systemui/statusbar

   masukan CarrierLabel$1.smali dan CarrierLabel.smali

   https://dl.dropboxusercontent.com/u/89770168/CarrierLabel.smali.zip


d. masukan image logo.png di res/drawable-hdpi


Recompile back ... enjoy!!


==============================


2. Carrier Name


a. - Decompile Systemui pke apktool

    - Lihat res/layout/statusbar.xml

    - Buka statusbar.xml dengan notepad ++



Cara 1:


copas line ini :


TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" /


diatas atas line:

com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" /


Cara 2:

Line diatas:

"android:textAppearance="@style/TextAppearance.StatusBar.Clock" artinya color dan dimensi sama dengan statusbar.clock yang di /values/styles: 16dip and Holo Blue Light.

Jika ingin dimensi dan warna sendiri pke line ini:

contoh pke text size 14.0dip dan warna putih:

copas line ini:

TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" /


diatas atas line:

com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" /


b. selanjutnya buka res/values/string.xml


masukan kode ini di bagian paling bawah string.xml

string name="hello"masukan text disini/string


di bagian masukan text disini tuliskan kata-kata terserah agan


SS

https://www.dropbox.com/s/ygnnzw1k6vqmiqc/home.jpg


Recompile back ... enjoy!!

Thank.
- XDA
- Om baut atas link nya
- All admin n member

No comments:

Post a Comment