Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,899 Members 48,862 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
crazy_user
Old
(Last edited by crazy_user; 12th April 2014 at 06:32 AM.)
#1  
crazy_user's Avatar
Member - OP
Thanks Meter 38
Posts: 69
Join Date: Mar 2014
Location: Sragen, Jawa Tengah
Default [GUIDE] [4.1.2] [SystemUI] How to make New Layout With Flip Anim

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

Quote:
SORRY FOR MY BAD ENGLISH
The Following 5 Users Say Thank You to crazy_user For This Useful Post: [ Click to Expand ]
 
crazy_user
Old
#2  
crazy_user's Avatar
Member - OP
Thanks Meter 38
Posts: 69
Join Date: Mar 2014
Location: Sragen, Jawa Tengah
SCREENSHOT
coming soon
The Following User Says Thank You to crazy_user For This Useful Post: [ Click to Expand ]
 
dugeriss
Old
#3  
dugeriss's Avatar
Senior Member
Thanks Meter 216
Posts: 211
Join Date: Apr 2013
Location: Gunung Pati,Semarang
nce guide om
The Following User Says Thank You to dugeriss For This Useful Post: [ Click to Expand ]
 
crazy_user
Old
#4  
crazy_user's Avatar
Member - OP
Thanks Meter 38
Posts: 69
Join Date: Mar 2014
Location: Sragen, Jawa Tengah
Quote:
Originally Posted by dugeriss View Post
nce guide om
thanks udah mampir om
The Following User Says Thank You to crazy_user For This Useful Post: [ Click to Expand ]
 
shevchovski
Old
#5  
shevchovski's Avatar
Member
Thanks Meter 45
Posts: 87
Join Date: Oct 2013
Location: Toyamas - Banyuwangi
great guide om
 
crazy_user
Old
#6  
crazy_user's Avatar
Member - OP
Thanks Meter 38
Posts: 69
Join Date: Mar 2014
Location: Sragen, Jawa Tengah
Quote:
Originally Posted by shevchovski View Post
great guide om
Thanks bro
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes