Jumat, 02 Mei 2014

- cari baris

 ^include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />


- ubah menjadi

 ^include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/alwi_header" />


- buat file xml baru dengan nama apa aja (contoh di atas alwi_header.xml)
isi xml baru tsb dengan script ini

^?xml version="1.0" encoding="utf-8"?>
^RelativeLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@+id/headerbau" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">
    ^LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
        ^include android:layout_width="fill_parent" android:layout_height="50.0dip" layout="@layout/status_bar_expanded_header" />
        ^TextView android:gravity="center" android:text="Apa aja boleehhhhh....." android:background="#FF353535" android:layout_width="fill_parent" android:layout_height="50.0dip" android:paddingTop="4.0dip" android:paddingBottom="4.0dip" />
    ^/LinearLayout>
^/RelativeLayout>


- Perhatikan baris

 ^TextView android:gravity="center" android:text="Apa aja boleehhhhh....."

baris tsb bisa di ganti seperti nampilkan foto, brightness, dll


- Recompile - sign - push - reboot
Comments
0 Comments

0 komentar:

Iklan