Micromax Takes OnePlus to Court! Android Wear Receives Lollipop – XDA TV

Android 5.0 Lollipop is available officially for the Moto 360! … more

Google Invites Selected Devs to Buy Project Tango Development Kit

Just about a month ago, the curious Project Tango development kit was … more

Micromax Yureka: Indian Handset with CyanogenMod

Thesoap opera involving Cyanogen Inc., OnePlus, and Micromax is one of the most talked about … more

Chainfire Turns Your Bootanimation into a Logging Center

Having a nice boot animation certainly adds a little bit of aesthetic polish to your … more

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][SMALI][4.4.2] How to port Mokee ListView Animation for TouchWiz

OP lacoursiere18

7th July 2014, 07:08 PM   |  #1  
lacoursiere18's Avatar
OP Recognized Themer
Flag LbTs
Thanks Meter: 5,196
 
3,589 posts
Join Date:Joined: Jan 2013
Donate to Me
More
[GUIDE][SMALI][4.4.2] How to port Mokee ListView Animation for TouchWiz 4.4.2



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!
Attached Files
File Type: zip SecSettings.zip - [Click for QR Code] (3.4 KB, 72 views)
Last edited by lacoursiere18; 7th July 2014 at 08:01 PM.
The Following User Says Thank You to lacoursiere18 For This Useful Post: [ View ]
7th July 2014, 07:17 PM   |  #2  
lacoursiere18's Avatar
OP Recognized Themer
Flag LbTs
Thanks Meter: 5,196
 
3,589 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Moving onto Framework2.jar.. decompile it and go to /android/widget/ directory..

Extract the attached zip and move the files into the directory above..

Compile and you should be done!

NOTE: There are some ID's referenced in AbsListView.smali but they should match all TouchWiz framework-res..If not let me know if you have trouble and I will post the ones you need to change!


IF anyone would like me to list my edits ONE BY ONE see HERE
Attached Files
File Type: zip framework2.zip - [Click for QR Code] (73.7 KB, 60 views)
Last edited by lacoursiere18; 8th July 2014 at 12:25 AM.
The Following User Says Thank You to lacoursiere18 For This Useful Post: [ View ]
7th July 2014, 07:19 PM   |  #3  
lacoursiere18's Avatar
OP Recognized Themer
Flag LbTs
Thanks Meter: 5,196
 
3,589 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Reserved..



Thanks sprytezero for the Video..
Last edited by lacoursiere18; 7th July 2014 at 07:51 PM.
The Following User Says Thank You to lacoursiere18 For This Useful Post: [ View ]
9th July 2014, 09:23 PM   |  #4  
Junior Member
Thanks Meter: 9
 
25 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by lacoursiere18

Reserved..



Thanks sprytezero for the Video..

Hello I have problems with framerwork2.jar do according to your guide but when you start the rom will not let me go from the home screen that can be
Last edited by migueldemon; 9th July 2014 at 09:26 PM.
9th July 2014, 09:41 PM   |  #5  
lacoursiere18's Avatar
OP Recognized Themer
Flag LbTs
Thanks Meter: 5,196
 
3,589 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Quote:
Originally Posted by migueldemon

Hello I have problems with framerwork2.jar do according to your guide but when you start the rom will not let me go from the home screen that can be

Can't really understand what you are trying to say..

Sent from my SM-G900F using XDA Premium 4 mobile app
10th July 2014, 09:37 PM   |  #6  
Junior Member
Thanks Meter: 9
 
25 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by lacoursiere18

Can't really understand what you are trying to say..

Sent from my SM-G900F using XDA Premium 4 mobile app

lacoursiere18 hello and tried to correct your guide, but framerwork2.jar gives me fc rom to start
10th July 2014, 10:02 PM   |  #7  
lacoursiere18's Avatar
OP Recognized Themer
Flag LbTs
Thanks Meter: 5,196
 
3,589 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Quote:
Originally Posted by migueldemon

lacoursiere18 hello and tried to correct your guide, but framerwork2.jar gives me fc rom to start

Please post a logcat..
10th July 2014, 10:08 PM   |  #8  
Junior Member
Thanks Meter: 9
 
25 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by lacoursiere18

Please post a logcat..

forgives me framerwirk2 compiles fine with apktool is to start the settings screen to boot my rom
11th July 2014, 02:46 PM   |  #9  
lacoursiere18's Avatar
OP Recognized Themer
Flag LbTs
Thanks Meter: 5,196
 
3,589 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Quote:
Originally Posted by migueldemon

forgives me framerwirk2 compiles fine with apktool is to start the settings screen to boot my rom

Well you need to post a logcat..

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

Advanced Search
Display Modes