TUT By :: imam LDS , tran duc tinh
link tải: tại đây
(Tut 5 tab SystemUI)
-> step by step
--- Decompile SystemUI.apk
--- Mở folder tải về và đưa file vào folder
SystemUI_src theo đường dẫn.
--- Mở SystemUI_src/res/layout/status_bar_expaded.xml
--- đặt code này ::
<com.pineapple.TabUI.TabButton android:gravity="center" android:layout_gravity="center" android:orientation="horizontal" android:background="@drawable/tab_bg" android:layout_width="fill_parent" android:layout_height="45.0dip" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
::ở dưới code ::
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:layout_marginTop="35.0dip" layout="@layout/status_bar_expanded_header" />
---đặt các code này:::;
<com.pineapple.TabUI.TabsContent android:id="@+id/tabbutton" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="55.0dip">
( đặt các cụm layout mà bạn muốn vào đây, vd như thông báo. fb ui. twitter Ui .............)
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content2" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content3" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content4" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content5" />
</ScrollView>
</com.pineapple.TabUI.TabsContent>
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip" android:weightSum="1.0" android:layout_alignParentBottom="true" />
::: ở dưới :::
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Nó sẽ có dạng :
<?xml version="1.0" encoding="utf-8"?>
<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">
<View android:id="@id/handle" android:background="@drawable/status_bar_close" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/close_handle_underlap" android:animateLayoutChanges="false">
<include android:background="@drawable/bg_tab" android:layout_width="fill_parent" android:layout_height="45.0dip" layout="@layout/status_bar_expanded_header" />
<com.pineapple.TabUI.TabButton android:gravity="center" android:layout_gravity="center" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="55.0dip" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
<FrameLayout android:id="@id/toolBarSwitchPanel" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.pineapple.TabUI.TabsContent android:id="@+id/tabbutton" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="55.0dip">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<-các code nằm riêng tab1->
</ScrollView>
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content2" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content3" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content4" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content5" />
</ScrollView>
</com.pineapple.TabUI.TabsContent>
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip" android:weightSum="1.0" android:layout_alignParentBottom="true" />
</LinearLayout>
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
</com.android.systemui.statusbar.phone.NotificationPanelView>
--- Recompile SystemUI_src
Decompile SystemUI_src.apk
~~> Next sang bước 2
--- mở public.xml trong res/values và smali/com/pineapple/TabUI/TabButton.smali
--- search
public 0x7f0202f1 ở TabButton.smali
thay nó bằng id ở public.xml
<public type="drawable" name="tab_indicator"> (chú ý : trong smali có nhiều dòng chứa id này, để ý đừng bỏ sót )
_____________==_________=___=___=__=
code public 0x7f0202fd
thay bằng <public type="drawable" name="tab1">
________==_=_==_=======___==_===_=
code public 0x7f0202ff
thay bằng <public type="drawable" name="tab2">
___========_==______===_=__==___
code public 0x7f020301
thay bằng <public type="drawable" name="tab3">
_____________====_=___====_====___==_
code public 0x7f020320
thay bằng <public type="drawable" name="tab4">
______________===_=_=_=_______=_____
code public 0x7f0202fe
thay bằng <public type="drawable" name="tab5">
>>>>>>>>>>>>>
-mở smali/com/pineapple/TabUI/TabsContent.smali
--- Search
dòng 21 code public 0x7f0c00ef
thay bằng <public type="id" name="tabbutton">
___========______===__
-> Recompile SystemUI_src_src
-> Sign, Push, Reboot, and enjoy
______________________=________
credit:: Pineapple
:: M.a.a.a.d
:: Xda developers.
:: Iwan Raksi
:: bros mario
link tải: tại đây
(Tut 5 tab SystemUI)
-> step by step
--- Decompile SystemUI.apk
--- Mở folder tải về và đưa file vào folder
SystemUI_src theo đường dẫn.
--- Mở SystemUI_src/res/layout/status_bar_expaded.xml
--- đặt code này ::
<com.pineapple.TabUI.TabButton android:gravity="center" android:layout_gravity="center" android:orientation="horizontal" android:background="@drawable/tab_bg" android:layout_width="fill_parent" android:layout_height="45.0dip" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
::ở dưới code ::
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:layout_marginTop="35.0dip" layout="@layout/status_bar_expanded_header" />
---đặt các code này:::;
<com.pineapple.TabUI.TabsContent android:id="@+id/tabbutton" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="55.0dip">
( đặt các cụm layout mà bạn muốn vào đây, vd như thông báo. fb ui. twitter Ui .............)
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content2" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content3" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content4" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content5" />
</ScrollView>
</com.pineapple.TabUI.TabsContent>
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip" android:weightSum="1.0" android:layout_alignParentBottom="true" />
::: ở dưới :::
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Nó sẽ có dạng :
<?xml version="1.0" encoding="utf-8"?>
<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">
<View android:id="@id/handle" android:background="@drawable/status_bar_close" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/close_handle_underlap" android:animateLayoutChanges="false">
<include android:background="@drawable/bg_tab" android:layout_width="fill_parent" android:layout_height="45.0dip" layout="@layout/status_bar_expanded_header" />
<com.pineapple.TabUI.TabButton android:gravity="center" android:layout_gravity="center" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="55.0dip" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
<FrameLayout android:id="@id/toolBarSwitchPanel" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.pineapple.TabUI.TabsContent android:id="@+id/tabbutton" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="55.0dip">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<-các code nằm riêng tab1->
</ScrollView>
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content2" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content3" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content4" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/imam_content5" />
</ScrollView>
</com.pineapple.TabUI.TabsContent>
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip" android:weightSum="1.0" android:layout_alignParentBottom="true" />
</LinearLayout>
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
</com.android.systemui.statusbar.phone.NotificationPanelView>
--- Recompile SystemUI_src
Decompile SystemUI_src.apk
~~> Next sang bước 2
--- mở public.xml trong res/values và smali/com/pineapple/TabUI/TabButton.smali
--- search
public 0x7f0202f1 ở TabButton.smali
thay nó bằng id ở public.xml
<public type="drawable" name="tab_indicator"> (chú ý : trong smali có nhiều dòng chứa id này, để ý đừng bỏ sót )
_____________==_________=___=___=__=
code public 0x7f0202fd
thay bằng <public type="drawable" name="tab1">
________==_=_==_=======___==_===_=
code public 0x7f0202ff
thay bằng <public type="drawable" name="tab2">
___========_==______===_=__==___
code public 0x7f020301
thay bằng <public type="drawable" name="tab3">
_____________====_=___====_====___==_
code public 0x7f020320
thay bằng <public type="drawable" name="tab4">
______________===_=_=_=_______=_____
code public 0x7f0202fe
thay bằng <public type="drawable" name="tab5">
>>>>>>>>>>>>>
-mở smali/com/pineapple/TabUI/TabsContent.smali
--- Search
dòng 21 code public 0x7f0c00ef
thay bằng <public type="id" name="tabbutton">
___========______===__
-> Recompile SystemUI_src_src
-> Sign, Push, Reboot, and enjoy
______________________=________
credit:: Pineapple
:: M.a.a.a.d
:: Xda developers.
:: Iwan Raksi
:: bros mario