[Guides & Links] TOUCHWIZ UNIFIED MODS THREAD

Search This thread

vinaykharayat

Senior Member
Feb 18, 2015
184
34
21
Pithoragarh
Clicking on the clock in the status bar opens the application. (Tested on 6.0.1).
The application on a single press can be assigned in Rom Control.

Thanks @Alex&rK and @sagitt67.

Put a smali from the attached file in SystemUI\smali\com\android\systemui\statusbar\policy\

In SystemUI\smali\com\android\systemui\statusbar\policy\Clock.smali find method to insert the code highlighted in blue before return-void
Code:
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .
    .
    .
    [COLOR="Blue"]new-instance v0, Lcom/android/systemui/statusbar/policy/Clock$24;

    invoke-direct {v0, p0, p1}, Lcom/android/systemui/statusbar/policy/Clock$24;-><init>(Lcom/android/systemui/statusbar/policy/Clock;Landroid/content/Context;)V

    invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/policy/Clock;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v0, Lcom/android/systemui/statusbar/policy/Clock$23;

    invoke-direct {v0, p0, p1}, Lcom/android/systemui/statusbar/policy/Clock$23;-><init>(Lcom/android/systemui/statusbar/policy/Clock;Landroid/content/Context;)V

    invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/policy/Clock;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V[/COLOR]

    return-void

Rom Control v2
Code:
<com.wubydax.romcontrol.v2.prefs.IntentDialogPreference
                android:key="press_clock_custom_app"
                android:title="Select application"
                app:intentSeparator="\##"/>

For a long press , i set " Alarm " . Perhaps you will not have the same name or you want to install another application.
Clock$23.smali
Code:
const-string v2, "com.sec.android.app.clockpackage"

    const-string v3, "com.sec.android.app.clockpackage.alarm.activity.AlarmMainActivity"

Toggle for Rom Control. Thank @stangdriver44.

Will you please edit post to make it easy for a noob. ?
 

Matt07211

Senior Member
Jan 10, 2015
642
289
Clicking on the clock in the status bar opens the application. (Tested on 6.0.1).
The application on a single press can be assigned in Rom Control.

Thanks @Alex&rK and @sagitt67.

Put a smali from the attached file in SystemUI\smali\com\android\systemui\statusbar\policy\

In SystemUI\smali\com\android\systemui\statusbar\policy\Clock.smali find method to insert the code highlighted in blue before return-void


Rom Control v2


For a long press , i set " Alarm " . Perhaps you will not have the same name or you want to install another application.
Clock$23.smali


Will you please edit post to make it easy for a noob. ?
It really can't get much easier then that. I suggest you read up on Smali so you get an idea of what you are doing. It then should make this a bit easier.

What the above does is modify system UI and then uses the RomControl app you compile to be able to modify/chose the alarm clock you want
 

Er. Aditya

Senior Member
Feb 28, 2014
4,312
6,119
BraveFort
How to add Multiwindow & Toolbox Toggles back on S7 Systemui

Ok, since samsung tries to ruin our lifes, I have worked on this more than a week to get it back.
This guide will help you add those toggles back.
So it is going to be hard, follow each step.

First, download this zip and unpack it into your system ui:
https://www.dropbox.com/s/3x41dkk896cqnzc/Toggles.rar?dl=0

SystemUI.apk
Now go to:
values/strings, and add:
Code:
    <string name="quick_settings_multiwindow_label">Multiwindow</string>
    <string name="quick_settings_toolbox_label">Toolbox</string>

And add the following to exsiting line:
Code:
    <string name="quick_settings_tiles_default">Wifi,Location,SilentMode,RotationLock,Bluetooth,MobileData,PowerSaving,AirplaneMode,DormantMode,[COLOR="Blue"]MultiWindow,Toolbox[/COLOR],Flashlight,UltraPowerSaving,WifiHotspot,PersonalMode,AllShareCast,Nfc,Sync,AOD,SFinder</string>

Go to:
smali\com\android\systemui\qs\QSDatabaseUtils.smali
Add the blue part, Make usre the red conds are match to what I mark! Or replace with your conds, otherwise won't work. :
Code:
    const-string v13, "SCREENCAPTURE"

    invoke-virtual {v12}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_1f

    .line 205
    const-string v13, "com.samsung.android.app.scrollcapture"

    move-object/from16 v0, p0

    invoke-virtual {v0, v13}, Lcom/android/systemui/qs/QSDatabaseUtils;->isPackageExists(Ljava/lang/String;)Z

    move-result v13

    if-nez v13,[COLOR="Red"] :cond_6[/COLOR]

    .line 206
    const-string v13, "QSDatabaseUtils"

    const-string v14, "ScreenCapture no package"

    invoke-static {v13, v14}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 [COLOR="Red"]:goto_2[/COLOR]

    .line 209
    :cond_1f
[COLOR="Blue"]   const-string v13, "Toolbox"

    invoke-virtual {v12}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13
    if-eqz v13, :cond_td

    if-nez v13, [COLOR="Red"]:cond_6[/COLOR]

    goto/16 [COLOR="Red"]:goto_2[/COLOR]
    .line 204
    :cond_td
    const-string v13, "MultiWindow"

    invoke-virtual {v12}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_td2

    .line 128
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/android/systemui/qs/QSDatabaseUtils;->mContext:Landroid/content/Context;

    invoke-virtual {v13}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v13

    const-string v14, "com.sec.feature.multiwindow"

    invoke-virtual {v13, v14}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z

    move-result v13

    if-nez v13,[COLOR="Red"] :cond_6[/COLOR]

    goto/16 [COLOR="Red"]:goto_2[/COLOR]

    .line 131
    :cond_td2[/COLOR]
   const-string v13, "AOD"

    invoke-virtual {v12}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_6

    goto/16 :goto_3
.end method


Now change in the smalis you have added the public.xml values according to mine:
Code:
    <public type="drawable" name="tw_quick_panel_icon_multiwindow_on" id="0x7f020723" />
    <public type="drawable" name="tw_quick_panel_quick_setting_icon_toolbox_on" id="0x7f020741" />
    <public type="string" name="quick_settings_multiwindow_label" id="0x7f0d0535" />
    <public type="string" name="quick_settings_toolbox_label" id="0x7f0d0536" />

Compile back systemui.

Now go to:
Frameowrk.jar Edits:

com/android/internal/logging/MetricsLogger;
Add the following:
Code:
.field public static final QS_MOBILEDATA:I = 0x199

.field public static final QS_NFC:I = 0x19a

[COLOR="Blue"].field public static final QS_TOOLBOX:I = 0x182[/COLOR]

[COLOR="Blue"].field public static final QS_MULTIWINDOW:I = 0x186[/COLOR]

Save, and push back to your device.

Now with DB editor/Boot receiver, add the toggles and enjoy.

Edit:
Or by CSC line(thanks @tdunham)
Code:
<CscFeature_SystemUI_ConfigDefQuickSettingItem>Wifi,Bluetooth,SilentMode,RotationLock,Location,PowerSaving,AirplaneMode,DormantMode,Flashlight,UltraPowerSaving,PersonalMode,AllShareCast,Nfc,Sync,SFinder,MobileData,WiFiHotspot,VoLte,Ebook,SmartStay,TouchSensitivity,ScreenCapture[COLOR="Blue"],MultiWindow,Toolbox[/COLOR]</CscFeature_SystemUI_ConfigDefQuickSettingItem>

Took me over a week to work on that, so press the thanks button :)

2qc3ywg.jpg

thankyou si or the guide i have added the toggles but somehow they dnt work...when i click them nothing happens
 

vinaykharayat

Senior Member
Feb 18, 2015
184
34
21
Pithoragarh
It really can't get much easier then that. I suggest you read up on Smali so you get an idea of what you are doing. It then should make this a bit easier.

What the above does is modify system UI and then uses the RomControl app you compile to be able to modify/chose the alarm clock you want
I placed smali file in desired location then what?
Romcontrolv2 means is it a app?
Then what about the code you provided below it?
 

Abdullaharis

Senior Member
Apr 19, 2016
214
100
19
Kerala
www.abdullaharis.tk

a.raul

Senior Member
Apr 21, 2014
375
509
Mordor
Different corner sizes, popup background color

I am in Note 4 Rom stock

Let's change the size of the corners and the background color popup.
Decompile framework-res.apk
Go to res/drawable and look for the following * .xml

dialog_background_material.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<inset android:inset="16.0dip"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <shape android:shape="rectangle">
        <corners android:radius="2.0dip" />
        <solid android:color="?colorBackground" />
    </shape>
</inset>
change for this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<inset android:inset="16.0dip"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <shape android:shape="rectangle">
        <corners android:bottomRightRadius="2.0dip" android:bottomLeftRadius="15.0dip" android:topLeftRadius="2.0dip" android:topRightRadius="15.0dip" />
        <gradient android:startColor="#ffffc605" android:endColor="#ff00fffb" android:centerColor="#fffff1bf" android:type="sweep" />
        <stroke android:width="3.0dip" android:color="#ff2484d8" />
    </shape>
</inset>

popup_background_material.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <corners android:radius="2.0dip" />
    <solid android:color="?colorBackground" />
</shape>
change for this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <corners android:bottomRightRadius="2.0dip" android:bottomLeftRadius="15.0dip" android:topLeftRadius="2.0dip" android:topRightRadius="15.0dip" />
    <gradient android:startColor="#ffffc605" android:endColor="#ff00fffb" android:centerColor="#fffff1bf" android:type="sweep" />
    <stroke android:width="3.0dip" android:color="#ff2484d8" />
</shape>

tw_dialog_background_material.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<inset android:insetLeft="@dimen/tw_dialog_background_inset_horizontal" android:insetRight="@dimen/tw_dialog_background_inset_horizontal" android:insetTop="@dimen/tw_dialog_background_inset_vertical" android:insetBottom="@dimen/tw_dialog_background_inset_vertical"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <shape android:shape="rectangle">
        <corners android:radius="2.0dip" />
        <solid android:color="?colorBackground" />
    </shape>
</inset>
change for this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<inset android:insetLeft="@dimen/tw_dialog_background_inset_horizontal" android:insetRight="@dimen/tw_dialog_background_inset_horizontal" android:insetTop="@dimen/tw_dialog_background_inset_vertical" android:insetBottom="@dimen/tw_dialog_background_inset_vertical"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <shape android:shape="rectangle">
        <corners android:bottomRightRadius="2.0dip" android:bottomLeftRadius="15.0dip" android:topLeftRadius="2.0dip" android:topRightRadius="15.0dip" />
        <gradient android:startColor="#ffffc605" android:endColor="#ff00fffb" android:centerColor="#fffff1bf" android:type="sweep" />
        <stroke android:width="3.0dip" android:color="#ff2484d8" />
    </shape>
</inset>

tw_popup_background_material.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
  xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:left="@dimen/tw_menu_popup_left_margin" android:right="@dimen/tw_menu_popup_right_margin" android:bottom="@dimen/tw_menu_popup_bottom_margin">
        <shape android:shape="rectangle">
            <stroke android:width="1.0px" android:color="@color/tw_popup_stroke_color_material" />
            <padding android:left="@dimen/tw_menu_popup_left_margin" android:right="@dimen/tw_menu_popup_right_margin" android:bottom="@dimen/tw_menu_popup_bottom_margin" />
            <corners android:radius="2.0dip" />
            <solid android:color="@color/tw_popup_background_material" />
        </shape>
    </item>
</layer-list>
change for this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
  xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:left="@dimen/tw_menu_popup_left_margin" android:right="@dimen/tw_menu_popup_right_margin" android:bottom="@dimen/tw_menu_popup_bottom_margin">
        <shape android:shape="rectangle">
            <stroke android:width="3.0dip" android:color="#ff2484d8" />
            <padding android:left="@dimen/tw_menu_popup_left_margin" android:right="@dimen/tw_menu_popup_right_margin" android:bottom="@dimen/tw_menu_popup_bottom_margin" />
            <corners android:bottomRightRadius="2.0dip" android:bottomLeftRadius="15.0dip" android:topLeftRadius="2.0dip" android:topRightRadius="15.0dip" />
            <gradient android:startColor="#ffffc605" android:endColor="#ff00fffb" android:centerColor="#fffff1bf" android:type="sweep" />
        </shape>
    </item>
</layer-list>

So that it does not happen to us like in the popup restart
We have several options
Go to res/drawable/tw_global_actions_silentmode_bg.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="?^attr-private/twGlobalActionsSilentModeBGColor" />
    <corners android:bottomLeftRadius="5.0dip" android:bottomRightRadius="5.0dip" />
</shape>
change for this, for gradient:
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <gradient android:startColor="#ffffc605" android:endColor="#ff00fffb" android:type="sweep" android:centerColor="#fffff1bf" />
    <corners android:topLeftRadius="5.0dip" android:topRightRadius="5.0dip" android:bottomLeftRadius="5.0dip" android:bottomRightRadius="5.0dip" />
</shape>
or transparent:
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#00000000" />
    <corners android:bottomLeftRadius="5.0dip" android:bottomRightRadius="5.0dip" />
</shape>

Everyone who changes colors, sizes and gradients in the corners to their liking.

I hope you understand

Greetings and luck
 

Attachments

  • Screenshot_2017-01-30-16-38-05.png
    Screenshot_2017-01-30-16-38-05.png
    145 KB · Views: 416
  • Screenshot_2017-01-30-16-37-13.png
    Screenshot_2017-01-30-16-37-13.png
    79.7 KB · Views: 398
  • Screenshot_2017-01-30-16-18-32.png
    Screenshot_2017-01-30-16-18-32.png
    201.8 KB · Views: 394
  • Screenshot_2017-01-30-16-36-29.png
    Screenshot_2017-01-30-16-36-29.png
    213 KB · Views: 376
Last edited:

Jhfreeze

Senior Member
Oct 30, 2014
459
438
Texas
hey,
i dont know weather you got it. i found a guide relating to this on 4pda. hop it will help you

first go here , do both
https://4pda.ru/forum/index.php?showtopic=540887&st=660#entry42420735

after that do this [update for 6.0]
https://4pda.ru/forum/index.php?s=&showtopic=540887&view=findpost&p=56830379

sry for my bad english

Darn, I love that mod. Been wanting it myself, that and listview animations. Too bad those aren't in english I can't read those.
 

Matt07211

Senior Member
Jan 10, 2015
642
289
I placed smali file in desired location then what?
Romcontrolv2 means is it a app?
Then what about the code you provided below it?
Check near the bottom of the front page, they should have a link to the rom control thread, you'll have to set up Android Studio and compile the app. They have the info there. Once you got the app working add the rom control code into the app
 
  • Like
Reactions: vinaykharayat

a.raul

Senior Member
Apr 21, 2014
375
509
Mordor
Darn, I love that mod. Been wanting it myself, that and listview animations. Too bad those aren't in english I can't read those.

Friend, there are many threads and guides that will help you

https://forum.xda-developers.com/sp...s/guide-listview-animations-lollipop-t3135690

https://forum.xda-developers.com/showthread.php?t=2685334

https://forum.xda-developers.com/android/themes/guide-how-to-port-mokee-listview-t2808288

And with little you surely do ;)

Greetings and luck
 

Jhfreeze

Senior Member
Oct 30, 2014
459
438
Texas

a.raul

Senior Member
Apr 21, 2014
375
509
Mordor
Thanks, but I am aware of those and have successfully done them all myself just not on marshmallow as things have changed

All the merits for the teacher @tdunham

By this threadhttps://forum.xda-developers.com/sprint-galaxy-s5/themes-apps/guide-listview-animations-lollipop-t3135690

Good Morning

I could do it and I'm in MM, everything is to want, to understand and to try it countless times.

As I think you could not do it, I upload the smalis modified and origin.

In RomControl v2

values/res/strings.xml
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>

values/res/arrays.xml

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>

Code:
<com.wubydax.romcontrol.v2.prefs.MyListPreference android:persistent="false" android:entries="@array/listview_animation_entries" android:title="Listview animation" android:key="listview_animation" android:summary="%s" android:dependency="listview_animation" android:entryValues="@array/listview_animation_values" />
        <com.wubydax.romcontrol.v2.prefs.MyListPreference android:persistent="false" android:entries="@array/listview_interpolator_entries" android:title="Listview interpolator" android:key="listview_interpolator" android:summary="%s" android:dependency="listview_interpolator" android:entryValues="@array/listview_interpolator_values" />

Greetings and luck
 

Attachments

  • framework.jar_DPI1_MM_Mod6_Listview_Animations.zip
    183.2 KB · Views: 62
  • Screenshot_2017-01-31-08-05-32.png
    Screenshot_2017-01-31-08-05-32.png
    29.2 KB · Views: 316
  • Screenshot_2017-01-31-08-05-35.png
    Screenshot_2017-01-31-08-05-35.png
    62.4 KB · Views: 312
  • Screenshot_2017-01-31-08-05-40.png
    Screenshot_2017-01-31-08-05-40.png
    58.4 KB · Views: 310

edzamber

Senior Member
Feb 21, 2012
3,881
3,674
All the merits for the teacher @tdunham

By this threadhttps://forum.xda-developers.com/sp...s/guide-listview-animations-lollipop-t3135690

Good Morning

I could do it and I'm in MM, everything is to want, to understand and to try it countless times.

As I think you could not do it, I upload the smalis modified and origin.


Greetings and luck

Hi,

Can you share exact edits because your framework.jar is too mutch different than mine and i can't compare correctly between yours modded smali and my originals one.

Many Thanks [emoji6]
 
Last edited:

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
TampaBay
Hi,

Can you share exact edits because your framework.jar is too mutch different than mine and i can't compare correctly between yours modded smali and my originals one.

Many Thanks [emoji6]
I don't remember it being very different from android L.
Here are mine. I added to listview guide too.
Aslo, tnx @a.raul for helping. I don't think you need strings.xml edit in Rom Control v2 too.
 
Last edited:
  • Like
Reactions: a.raul and edzamber

a.raul

Senior Member
Apr 21, 2014
375
509
Mordor
I don't remember it being very different from android L.
Here are mine. I added to listview guide too.
Aslo, tnx @a.raul for helping. I don't think you need strings.xml edit in Rom Control v2 too.

Thank you very much

I have strings.xml for the translation

For example in my case in res / values-es-rES / strings.xml I have it so:

Code:
<string name="listview_animation_title">Animación ListView</string>
    <string name="listview_off">Apagado</string>
    <string name="listview_wave_left">Ola (izquierda)</string>
    <string name="listview_wave_right">Ola (derecha)</string>
    <string name="listview_alpha">Alpha</string>
    <string name="listview_scale">Escala</string>
    <string name="listview_stack_top">Pila (arriba)</string>
    <string name="listview_stack_bottom">Pila (abajo)</string>
    <string name="listview_unfold">Desplegar</string>
    <string name="listview_fold">Doblez</string>
    <string name="listview_translate_left">Translate (izquierda)</string>
    <string name="listview_translate_right">Translate (derecha)</string>
    <string name="listview_rotate">Girar</string>
    <string name="listview_interpolator_title">Interpolador ListView</string>
    <string name="listview_accelerate_interpolator">Acelerar</string>
    <string name="listview_decelerate_interpolator">Decelerar</string>
    <string name="listview_accelerate_decelerate_interpolator">Acelerar desacelerar</string>
    <string name="listview_anticipate_interpolator">Anticipar</string>
    <string name="listview_overshoot_interpolator">Excederse</string>
    <string name="listview_anticipate_overshoot_interpolator">Anticipar excederse</string>
    <string name="listview_bounce_interpolator">Bote</string>

My things :D

Greetings and luck
 
  • Like
Reactions: tdunham

Jhfreeze

Senior Member
Oct 30, 2014
459
438
Texas
All the merits for the teacher @tdunham

By this threadhttps://forum.xda-developers.com/sprint-galaxy-s5/themes-apps/guide-listview-animations-lollipop-t3135690

Good Morning

I could do it and I'm in MM, everything is to want, to understand and to try it countless times.

As I think you could not do it, I upload the smalis modified and origin.

In RomControl v2

values/res/strings.xml
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>

values/res/arrays.xml

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>

Code:
<com.wubydax.romcontrol.v2.prefs.MyListPreference android:persistent="false" android:entries="@array/listview_animation_entries" android:title="Listview animation" android:key="listview_animation" android:summary="%s" android:dependency="listview_animation" android:entryValues="@array/listview_animation_values" />
        <com.wubydax.romcontrol.v2.prefs.MyListPreference android:persistent="false" android:entries="@array/listview_interpolator_entries" android:title="Listview interpolator" android:key="listview_interpolator" android:summary="%s" android:dependency="listview_interpolator" android:entryValues="@array/listview_interpolator_values" />

Greetings and luck

Amd you can see my post on that thread on the last page when I got it working on 5.1.1, tried same method on mm for note 5 with no luck. I'll try your smalis though thanks
 
  • Like
Reactions: a.raul and tdunham

Top Liked Posts

Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone