[GUIDE] [4.1.2] [SystemUI] How to make New Layout With Flip Anim

Search This thread

crazy_user

Senior Member
Mar 6, 2014
69
42
Sragen, Jawa Tengah
Hello guyss... I will give you a simple guide..
Tested on my device " GT-B5330 " in TW rom
For other device, you must adapt with this guide

How To :
1. Decompile your SystemUI.apk
2. Go to ids.xml in SystemUI/res/values/ids.xml
3. Add this code
Code:
    <item type="id" name="panel_flip">false</item>
    <item type="id" name="button_flip">false</item>
4. Go to tw_statusbar_expanded_header in SystemUI/res/layout-sw320dp-mdpi/here
5. Find this code
Code:
</LinearLayout>
Above this code, add this
Code:
<com.kangkung.ButtonKangkung android:id="@id/button_flip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
6. Go to tw_statusbar_expanded.xml in SystemUI/res/layout/here
7. Find this code
Code:
<View android:background="#091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="@dimen/tw_notification_panel_header_height" />
Below this code, add this
Code:
    <com.kangkung.KangkungViewFlipper android:id="@id/panel_flip" android:layout_width="fill_parent" android:layout_height="wrap_content">
        <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
Now, find this code
Code:
</ScrollView>
Below this code add this
Code:
    </LinearLayout>
        <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
            <include layout="@layout/crazy_layout" />
        </LinearLayout>
    </com.kangkung.KangkungViewFlipper>

8. Add resources file to your decompiled SystemUI

NOW, COMPILE YOUR SystemUI.apk and decompile again your compiled SystemUI.apk
You need do this for get the new id from public.xml

Okey, now open public.xml in SystemUI/res/values/public.xml
You must match this id
Code:
Open "SystemUI.apk\smali\com\kangkung\ButtonKangkung.smali'
	Find this code

	line #23     const v0, 0x7f0d0132					#type="id" name="button_flip"
	line #36     const v1, 0x7f0202a1					#type="drawable" name="button_flip"

Open "SystemUI.apk\smali\com\kangkung\KangkungViewFlipper.smali'
	Find this code

	Line #21     const v2, 0x7f0d0131			    	        #type="id" name="panel_flip"
	Line #87     const v2, 0x7f040016					#type="anim" name="crazy_flip_3d_quicker_anim"
	Line #107    const v2, 0x7f040016			                #type="anim" name="crazy_flip_3d_quicker_anim"
	Line #127    const v2, 0x7f040016			    	        #type="anim" name="crazy_flip_3d_quicker_anim"

Recompile, sign , and push to your phone

NB :
- Still do with your own risk
- Backup your original SystemUI.apk
- If you get error please give me a log

CREDIT
-dugeriss
-SpaceCaker
-KuliDiniHari

Download File :
http://d-h.st/ToY

SORRY FOR MY BAD ENGLISH
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Hello guyss... I will give you a simple guide..
    Tested on my device " GT-B5330 " in TW rom
    For other device, you must adapt with this guide

    How To :
    1. Decompile your SystemUI.apk
    2. Go to ids.xml in SystemUI/res/values/ids.xml
    3. Add this code
    Code:
        <item type="id" name="panel_flip">false</item>
        <item type="id" name="button_flip">false</item>
    4. Go to tw_statusbar_expanded_header in SystemUI/res/layout-sw320dp-mdpi/here
    5. Find this code
    Code:
    </LinearLayout>
    Above this code, add this
    Code:
    <com.kangkung.ButtonKangkung android:id="@id/button_flip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
    6. Go to tw_statusbar_expanded.xml in SystemUI/res/layout/here
    7. Find this code
    Code:
    <View android:background="#091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="@dimen/tw_notification_panel_header_height" />
    Below this code, add this
    Code:
        <com.kangkung.KangkungViewFlipper android:id="@id/panel_flip" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
    Now, find this code
    Code:
    </ScrollView>
    Below this code add this
    Code:
        </LinearLayout>
            <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
                <include layout="@layout/crazy_layout" />
            </LinearLayout>
        </com.kangkung.KangkungViewFlipper>

    8. Add resources file to your decompiled SystemUI

    NOW, COMPILE YOUR SystemUI.apk and decompile again your compiled SystemUI.apk
    You need do this for get the new id from public.xml

    Okey, now open public.xml in SystemUI/res/values/public.xml
    You must match this id
    Code:
    Open "SystemUI.apk\smali\com\kangkung\ButtonKangkung.smali'
    	Find this code
    
    	line #23     const v0, 0x7f0d0132					#type="id" name="button_flip"
    	line #36     const v1, 0x7f0202a1					#type="drawable" name="button_flip"
    
    Open "SystemUI.apk\smali\com\kangkung\KangkungViewFlipper.smali'
    	Find this code
    
    	Line #21     const v2, 0x7f0d0131			    	        #type="id" name="panel_flip"
    	Line #87     const v2, 0x7f040016					#type="anim" name="crazy_flip_3d_quicker_anim"
    	Line #107    const v2, 0x7f040016			                #type="anim" name="crazy_flip_3d_quicker_anim"
    	Line #127    const v2, 0x7f040016			    	        #type="anim" name="crazy_flip_3d_quicker_anim"

    Recompile, sign , and push to your phone

    NB :
    - Still do with your own risk
    - Backup your original SystemUI.apk
    - If you get error please give me a log

    CREDIT
    -dugeriss
    -SpaceCaker
    -KuliDiniHari

    Download File :
    http://d-h.st/ToY

    SORRY FOR MY BAD ENGLISH
    1
    SCREENSHOT
    coming soon :p
    1