[Guide][CM11] Make List Selector like Android L

Search This thread

qoejohn

Senior Member
Feb 2, 2015
327
472
Yogyakarta Special Region
Hi again guys :laugh:
on this occasion, i want share how to make click/tap like android L,
I am coming from this guide thread http://forum.xda-developers.com/showpost.php?p=60224248&postcount=1
big thanks to the author Gabri™
but I got an error while following step guide , then I think , it is a guide for stock TouchWiz .. and I tried to change a little in order to be able to work well in CM11 :D
This guide is very simply

ok lets go..


  • Decompile framework-res.apk
  • Open framework-res.apk/res/drawable/list_selector_background_transition_holo_dark.xml
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <transition
      xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:drawable="@drawable/list_pressed_holo_dark" />
        <item android:drawable="@drawable/list_longpressed_holo_dark" />
    </transition>
    Replace all lines with this:
    Code:
    [COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
    <animation-list android:oneshot="true"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_000" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_001" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_002" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_003" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_004" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_005" />
    </animation-list>[/COLOR]
    Save

  • Open framework-res.apk/res/drawable/list_selector_background_transition_holo_light.xml
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <transition
      xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:drawable="@drawable/list_pressed_holo_light" />
        <item android:drawable="@drawable/list_longpressed_holo_light" />
    </transition>
    Replace all lines with this:
    Code:
    [COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
    <animation-list android:oneshot="true"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_000" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_001" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_002" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_003" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_004" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_005" />
    </animation-list>[/COLOR]
    Save

  • Then, download attached file and merge it to your decompiled framework-res.apk (framework-res.apk/res/drawable-xxhdpi/here)
  • Recompile ,,
  • Done

enjoyyy :D
 

Attachments

  • list_selector_L.zip
    10.7 KB · Views: 221

Casper1982

Senior Member
Mar 20, 2013
550
133
La Pampa
Hi again guys :laugh:
on this occasion, i want share how to make click/tap like android L,
I am coming from this guide thread http://forum.xda-developers.com/showpost.php?p=60224248&postcount=1
big thanks to the author Gabri™
but I got an error while following step guide , then I think , it is a guide for stock TouchWiz .. and I tried to change a little in order to be able to work well in CM11 :D
This guide is very simply

ok lets go..


  • Decompile framework-res.apk
  • Open framework-res.apk/res/drawable/list_selector_background_transition_holo_dark.xml
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <transition
      xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:drawable="@drawable/list_pressed_holo_dark" />
        <item android:drawable="@drawable/list_longpressed_holo_dark" />
    </transition>
    Replace all lines with this:
    Code:
    [COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
    <animation-list android:oneshot="true"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_000" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_001" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_002" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_003" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_004" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_005" />
    </animation-list>[/COLOR]
    Save

  • Open framework-res.apk/res/drawable/list_selector_background_transition_holo_light.xml
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <transition
      xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:drawable="@drawable/list_pressed_holo_light" />
        <item android:drawable="@drawable/list_longpressed_holo_light" />
    </transition>
    Replace all lines with this:
    Code:
    [COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
    <animation-list android:oneshot="true"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_000" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_001" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_002" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_003" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_004" />
        <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_005" />
    </animation-list>[/COLOR]
    Save

  • Then, download attached file and merge it to your decompiled framework-res.apk (framework-res.apk/res/drawable-xxhdpi/here)
  • Recompile ,,
  • Done

enjoyyy :D

amazing thanks bro ... now if it works .. thanks..
 
Last edited:
  • Like
Reactions: qoejohn

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Hi again guys :laugh:
    on this occasion, i want share how to make click/tap like android L,
    I am coming from this guide thread http://forum.xda-developers.com/showpost.php?p=60224248&postcount=1
    big thanks to the author Gabri™
    but I got an error while following step guide , then I think , it is a guide for stock TouchWiz .. and I tried to change a little in order to be able to work well in CM11 :D
    This guide is very simply

    ok lets go..


    • Decompile framework-res.apk
    • Open framework-res.apk/res/drawable/list_selector_background_transition_holo_dark.xml
      Code:
      <?xml version="1.0" encoding="utf-8"?>
      <transition
        xmlns:android="http://schemas.android.com/apk/res/android">
          <item android:drawable="@drawable/list_pressed_holo_dark" />
          <item android:drawable="@drawable/list_longpressed_holo_dark" />
      </transition>
      Replace all lines with this:
      Code:
      [COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
      <animation-list android:oneshot="true"
        xmlns:android="http://schemas.android.com/apk/res/android">
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_000" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_001" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_002" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_003" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_004" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_005" />
      </animation-list>[/COLOR]
      Save

    • Open framework-res.apk/res/drawable/list_selector_background_transition_holo_light.xml
      Code:
      <?xml version="1.0" encoding="utf-8"?>
      <transition
        xmlns:android="http://schemas.android.com/apk/res/android">
          <item android:drawable="@drawable/list_pressed_holo_light" />
          <item android:drawable="@drawable/list_longpressed_holo_light" />
      </transition>
      Replace all lines with this:
      Code:
      [COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
      <animation-list android:oneshot="true"
        xmlns:android="http://schemas.android.com/apk/res/android">
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_000" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_001" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_002" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_003" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_004" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_005" />
      </animation-list>[/COLOR]
      Save

    • Then, download attached file and merge it to your decompiled framework-res.apk (framework-res.apk/res/drawable-xxhdpi/here)
    • Recompile ,,
    • Done

    enjoyyy :D
    1
    Hi again guys :laugh:
    on this occasion, i want share how to make click/tap like android L,
    I am coming from this guide thread http://forum.xda-developers.com/showpost.php?p=60224248&postcount=1
    big thanks to the author Gabri™
    but I got an error while following step guide , then I think , it is a guide for stock TouchWiz .. and I tried to change a little in order to be able to work well in CM11 :D
    This guide is very simply

    ok lets go..


    • Decompile framework-res.apk
    • Open framework-res.apk/res/drawable/list_selector_background_transition_holo_dark.xml
      Code:
      <?xml version="1.0" encoding="utf-8"?>
      <transition
        xmlns:android="http://schemas.android.com/apk/res/android">
          <item android:drawable="@drawable/list_pressed_holo_dark" />
          <item android:drawable="@drawable/list_longpressed_holo_dark" />
      </transition>
      Replace all lines with this:
      Code:
      [COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
      <animation-list android:oneshot="true"
        xmlns:android="http://schemas.android.com/apk/res/android">
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_000" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_001" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_002" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_003" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_004" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_dark_005" />
      </animation-list>[/COLOR]
      Save

    • Open framework-res.apk/res/drawable/list_selector_background_transition_holo_light.xml
      Code:
      <?xml version="1.0" encoding="utf-8"?>
      <transition
        xmlns:android="http://schemas.android.com/apk/res/android">
          <item android:drawable="@drawable/list_pressed_holo_light" />
          <item android:drawable="@drawable/list_longpressed_holo_light" />
      </transition>
      Replace all lines with this:
      Code:
      [COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
      <animation-list android:oneshot="true"
        xmlns:android="http://schemas.android.com/apk/res/android">
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_000" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_001" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_002" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_003" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_004" />
          <item android:duration="1" android:drawable="@drawable/list_anim_holo_light_005" />
      </animation-list>[/COLOR]
      Save

    • Then, download attached file and merge it to your decompiled framework-res.apk (framework-res.apk/res/drawable-xxhdpi/here)
    • Recompile ,,
    • Done

    enjoyyy :D

    amazing thanks bro ... now if it works .. thanks..
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