.

NotificationBar Background 5style


Link tải: Tải tại đây

 - Recom SystemUI.apk, đưa file vào theo đường dẫn
 - Mở status_bar_expanded.xml, tìm code

<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_margin_left"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"> (*)

  và sửa

    android:background="@drawable/***"

  thành

    android:background="#00000000"

  và dán các code sau nằm ngay dưới code (*)




<com.tjnhk6.style.NotifContent android:id="@+id/notif_style" android:layout_width="fill_parent" android:layout_height="wrap_content">
        <TextView android:background="@drawable/tw_notification_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
        <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
            <TextView android:background="@drawable/tw_notification_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
            <include layout="@layout/kidlat1" />
        </FrameLayout>
        <TextView android:background="@drawable/wood_notif" android:layout_width="fill_parent" android:layout_height="fill_parent" />
        <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="489.5dip" />
            <include layout="@layout/meo_stt3" />
        </LinearLayout>
        <TextView android:background="@drawable/fap" android:layout_width="fill_parent" android:layout_height="fill_parent" />
    </com.tjnhk6.style.NotifContent>


 - Thêm các code này vào tab trống

    <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="20.0dip">
    <TextView android:textSize="20.0dip" android:textStyle="bold" android:textColor="#ffffffff" android:paddingTop="20.0dip" android:layout_width="fill_parent" android:layout_height="50.0dip" android:text="NotifBar Style" />
            <com.tjnhk6.style.NotifButton android:id="@+id/notif_style1" android:paddingTop="20.0dip" android:layout_width="104.0dip" android:layout_height="30.0dip" />
            <com.tjnhk6.style.NotifButton2 android:id="@+id/notif_style2" android:paddingTop="20.0dip" android:layout_width="104.0dip" android:layout_height="30.0dip" />
            <com.tjnhk6.style.NotifButton3 android:id="@+id/notif_style3" android:paddingTop="20.0dip" android:layout_width="104.0dip" android:layout_height="30.0dip" />
            <com.tjnhk6.style.NotifButton4 android:id="@+id/notif_style4" android:paddingTop="20.0dip" android:layout_width="104.0dip" android:layout_height="30.0dip" />
            <com.tjnhk6.style.NotifButton5 android:id="@+id/notif_style5" android:paddingTop="20.0dip" android:layout_width="104.0dip" android:layout_height="30.0dip" />
        </LinearLayout>
   
   
 - recompile SystemUI_src
 - decompile SystemUI_src.apk

 - Mở public.xml và smali/com/tjnhk6/style/NotifButton.smali

tìm code 0x7f08012c thay nó bằng id tìm được ở public.xml
    <public type="id" name="notif_style1" id="0x7f08012c" />

tìm code 0x7f020266 thay nó bằng id tìm được ở public.xml
    <public type="drawable" name="stt3_tab1" id="0x7f020266" />

 - next
mở smali/com/tjnhk6/style/NotifButton2.smali

tìm code 0x7f08012d thay nó bằng id tìm được ở public.xml
    <public type="id" name="notif_style2" id="0x7f08012d" />

tìm code 0x7f020267 thay nó bằng id tìm được ở public.xml
    <public type="drawable" name="stt3_tab2" id="0x7f020267" />

 - next
mở smali/com/tjnhk6/style/NotifButton3.smali    
   
tìm code 0x7f08012e thay nó bằng id tìm được ở public.xml
    <public type="id" name="notif_style3" id="0x7f08012e" />    
   
tìm code 0x7f020268 thay nó bằng id tìm được ở public.xml
    <public type="drawable" name="stt3_tab3" id="0x7f020268" />    
   
 - next
mở smali/com/tjnhk6/style/NotifButton4.smali    
   
tìm code 0x7f08012f thay nó bằng id tìm được ở public.xml
    <public type="id" name="notif_style4" id="0x7f08012f" />    
   
tìm code 0x7f020269 thay nó bằng id tìm được ở public.xml
    <public type="drawable" name="stt3_tab4" id="0x7f020269" />    
   
 - next
mở smali/com/tjnhk6/style/NotifButton5.smali

tìm code 0x7f080130 thay nó bằng id tìm được ở public.xml
    <public type="id" name="notif_style5" id="0x7f080130" />

tìm code 0x7f02026a thay nó bằng id tìm được ở public.xml
    <public type="drawable" name="stt3_tab5" id="0x7f02026a" />

 - next
mở smali/com/tjnhk6/style/NotifContent.smali

tìm code 0x7f080131 thay nó bằng id tìm được ở public.xml
    <public type="id" name="notif_style" id="0x7f080131" />

 - done
 - recompile
 - sign
 - nhét UI vào hệ thống
   
   Nguồn :      pineapple * share từ Trần Đức Tịnh *