Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP crazy_user

9th April 2014, 05:59 AM   |  #1  
crazy_user's Avatar
OP Member
Flag Sragen, Jawa Tengah
Thanks Meter: 39
 
69 posts
Join Date:Joined: Mar 2014
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

Last edited by crazy_user; 12th April 2014 at 07:32 AM.
The Following 6 Users Say Thank You to crazy_user For This Useful Post: [ View ]
9th April 2014, 06:33 AM   |  #2  
crazy_user's Avatar
OP Member
Flag Sragen, Jawa Tengah
Thanks Meter: 39
 
69 posts
Join Date:Joined: Mar 2014
SCREENSHOT
coming soon
The Following User Says Thank You to crazy_user For This Useful Post: [ View ]
10th April 2014, 02:22 PM   |  #3  
dugeriss's Avatar
Senior Member
Flag Gunung Pati,Semarang
Thanks Meter: 220
 
224 posts
Join Date:Joined: Apr 2013
More
nce guide om
The Following User Says Thank You to dugeriss For This Useful Post: [ View ]
12th April 2014, 07:16 AM   |  #4  
crazy_user's Avatar
OP Member
Flag Sragen, Jawa Tengah
Thanks Meter: 39
 
69 posts
Join Date:Joined: Mar 2014
Quote:
Originally Posted by dugeriss

nce guide om

thanks udah mampir om
The Following User Says Thank You to crazy_user For This Useful Post: [ View ]
12th May 2014, 09:20 PM   |  #5  
shevchovski's Avatar
Member
Flag Toyamas - Banyuwangi
Thanks Meter: 56
 
94 posts
Join Date:Joined: Oct 2013
More
great guide om
19th June 2014, 07:19 AM   |  #6  
crazy_user's Avatar
OP Member
Flag Sragen, Jawa Tengah
Thanks Meter: 39
 
69 posts
Join Date:Joined: Mar 2014
Quote:
Originally Posted by shevchovski

great guide om

Thanks bro
19th September 2014, 04:07 PM   |  #7  
Senior Member
Flag Kiev
Thanks Meter: 26
 
206 posts
Join Date:Joined: Oct 2013
More
Pls re-upload the files

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes