Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,794 Members 45,385 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][SMALI][4.4.2] How to port Mokee ListView Animation for TouchWiz 4.4.2

Tip us?
 
thanhphuong
Old
#21  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jul 2014
Quote:
Originally Posted by lacoursiere18 View Post
[GUIDE][SMALI][4.4.2] How to port Mokee ListView Animation for TouchWiz 4.4.2


Flashable zip for ND7 will be uploaded soon..

This guide will show you how to edit two files:
  1. SecSettings.apk
  2. Framework2.jar
You will need to know how to decompile/recompile and change ID's referenced in the smali that we add..

Like to give a BIG THANKS to @Adi Aisiteru Reborn for posting the initial port for CM11!

So lets start with SecSettings first..decompile it and go to res/values

in arrays.xml add this BEFORE </resources>:
Code:
<string-array name="listview_animation_entries">
        <item>@string/listview_off</item>
        <item>@string/listview_wave_left</item>
        <item>@string/listview_wave_right</item>
        <item>@string/listview_scale</item>
        <item>@string/listview_alpha</item>
        <item>@string/listview_stack_top</item>
        <item>@string/listview_stack_bottom</item>
        <item>@string/listview_unfold</item>
        <item>@string/listview_fold</item>
        <item>@string/listview_translate_left</item>
        <item>@string/listview_translate_right</item>
        <item>@string/listview_rotate</item>
    </string-array>
    <string-array name="listview_animation_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
        <item>3</item>
        <item>4</item>
        <item>5</item>
        <item>6</item>
        <item>7</item>
        <item>8</item>
        <item>9</item>
        <item>10</item>
        <item>11</item>
    </string-array>
    <string-array name="listview_interpolator_entries">
        <item>@string/listview_off</item>
        <item>@string/listview_accelerate_interpolator</item>
        <item>@string/listview_decelerate_interpolator</item>
        <item>@string/listview_accelerate_decelerate_interpolator</item>
        <item>@string/listview_anticipate_interpolator</item>
        <item>@string/listview_overshoot_interpolator</item>
        <item>@string/listview_anticipate_overshoot_interpolator</item>
        <item>@string/listview_bounce_interpolator</item>
    </string-array>
    <string-array name="listview_interpolator_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
        <item>3</item>
        <item>4</item>
        <item>5</item>
        <item>6</item>
        <item>7</item>
    </string-array>
</resources>
Next strings.xml add this BEFORE </resources>:
Code:
<string name="listview_animation_title">ListView animation</string>
    <string name="listview_off">Off</string>
    <string name="listview_wave_left">Wave (left)</string>
    <string name="listview_wave_right">Wave (right)</string>
    <string name="listview_alpha">Alpha</string>
    <string name="listview_scale">Scale</string>
    <string name="listview_stack_top">Stack (top)</string>
    <string name="listview_stack_bottom">Stack (bottom)</string>
    <string name="listview_unfold">Unfold</string>
    <string name="listview_fold">Fold</string>
    <string name="listview_translate_left">Translate (left)</string>
    <string name="listview_translate_right">Translate (right)</string>
    <string name="listview_rotate">Rotate</string>
    <string name="listview_interpolator_title">ListView interpolator</string>
    <string name="listview_accelerate_interpolator">Accelerate</string>
    <string name="listview_decelerate_interpolator">Decelerate</string>
    <string name="listview_accelerate_decelerate_interpolator">Accelerate decelerate</string>
    <string name="listview_anticipate_interpolator">Anticipate</string>
    <string name="listview_overshoot_interpolator">Overshoot</string>
    <string name="listview_anticipate_overshoot_interpolator">Anticipate overshoot</string>
    <string name="listview_bounce_interpolator">Bounce</string>
</resources>
Next you need to determine where you want the selection to pick you ListView animations. I put mine under Display options in SecSettings.
Go to res/xml and find display_settings.xml
Add this line wherever you want:
Code:
<PreferenceScreen android:title="@string/listview_animation_title" android:key="listview_animation_settings" android:fragment="com.android.settings.ND7.ListViewSettings" />
Next download the files attached and put them in their respectable folder.
  • res/xml goes into YOUR res/xml
  • com/android/settings/ goes into YOUR com/android/settings/ directory

Go ahead and recompile your SecSettings. Once compiled, get the NEWLY compiled one and decompile it.

Go to res/values/ public.xml
Search:
Code:
mokee_listview_animations
Copy the ID, the number at the end, 0x7*****

Go to com/android/settings/ListViewAnimations.smali (the one we added)
Search for the ID:
Code:
0x7f0700fc
and CHANGE IT TO YOURS.

Done with SecSettings..Recompile it!
I want to cover all ListViewSettings.smali topic in ND7 item I am using android v4.1.2. thask
 
jewnersey
Old
#22  
jewnersey's Avatar
Senior Member
Thanks Meter 78
Posts: 1,088
Join Date: Jul 2010
Just a note for folks. . You can use xuimod in xposed for full system wide animation control.
 
lacoursiere18
Old
#23  
lacoursiere18's Avatar
Recognized Themer - OP
Thanks Meter 3,992
Posts: 2,970
Join Date: Jan 2013
Location: Boca Raton

 
DONATE TO ME
Quote:
Originally Posted by jewnersey View Post
Just a note for folks. . You can use xuimod in xposed for full system wide animation control.
Like hard coded.. therfore no RAM consumption with all cooed frameworks

Hit "Thanks" if I helped you
 
jewnersey
Old
#24  
jewnersey's Avatar
Senior Member
Thanks Meter 78
Posts: 1,088
Join Date: Jul 2010
Nah. But just offering as an alternative to the less savvy and lazy. Thanks for putting up this tut
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes