[Guide]Smooth Spinners for GB and ICS - HyperDroid

Search This thread

jpkbeddu

Senior Member
May 21, 2011
402
73
Chennai, India
Xposed framework mod developer rovo89 confirmed the possibility of making a xposed module for smooth spinners.. Can anyone make one ?

Without smooth spinners, I get a felling that my phone lags. Thanks for this guide..

Sent from my GT-N7100
 
  • Like
Reactions: D.O.C

Top Liked Posts

  • There are no posts matching your filters.
  • 43
    This Guide is intended for rom developers/cooks to add some visual candy for they roms.

    All credits are due to ihlades, and we would want to thank him for all his efforts to the Open Source community, a true example of a respected developer and we are very proud to have him here at XDA...Thanks!!, to pongster who has been sharing this since he opensourced his GBX project over at the HD2 forums, and all the great devs who help other users into becoming true modders, thanks!!


    We (Hyperdroid Team) have been using this mod in three devices now (SGT, HD2 and S2), so we are confident it will work in any android based device running gingerbread (we have not tested yet on ICS).

    you must have basic compiling/decompiling knowledge and already have the tools set up to it to edit xmls.

    The xmls are located at framework-res.apk/res/drawable

    This is the list of the xmls to edit


    • progress_large.xml
    • progress_large_white.xml
    • progress_medium.xml
    • progress_medium_white.xml
    • progress_small.xml
    • progress_small_titlebar.xml
    • progress_small_white
    • search_spinner.xml

    copy and paste replacing current code with this code into them

    progress_large.xml

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <animated-rotate android:drawable="@drawable/spinner_black_76" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
      xmlns:android="http://schemas.android.com/apk/res/android" />
    progress_large_white.xml

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <animated-rotate android:drawable="@drawable/spinner_white_76" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
      xmlns:android="http://schemas.android.com/apk/res/android" />
    progress_medium.xml

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <animated-rotate android:drawable="@drawable/spinner_black_48" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
      xmlns:android="http://schemas.android.com/apk/res/android" />
    progress_medium_white.xml

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <animated-rotate android:drawable="@drawable/spinner_white_48" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
      xmlns:android="http://schemas.android.com/apk/res/android" />
    progress_small.xml

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <animated-rotate android:drawable="@drawable/spinner_black_16" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
      xmlns:android="http://schemas.android.com/apk/res/android" />
    progress_small_titlebar.xml

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <animated-rotate android:drawable="@drawable/spinner_white_16" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
      xmlns:android="http://schemas.android.com/apk/res/android" />
    progress_small_white.xml

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <animated-rotate android:drawable="@drawable/spinner_white_16" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
      xmlns:android="http://schemas.android.com/apk/res/android" />
    search_spinner.xml

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <animated-rotate android:drawable="@drawable/spinner_black_20" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
      xmlns:android="http://schemas.android.com/apk/res/android" />
    then compile back.

    If you noticed, all we are doing is increasing the frames count in the same time, giving the spinners the smooth animation it deserves :)

    here are the xmls zipped uncompiled for your commodity, just replace them in framework-res.apk/res/drawable, then compile back.

    and here is a vrtheme for it, it should work in any device (untested and dont come crying here it doesnt work, if it doesnt, then do the whole process which is about 1 min if you know what you are doing)
    2
    would very much appreciate that mate - hopefully the chef's will incorporate them in their up and coming ROM's although I might have a play myself :)

    three things I don't like about my Note is -

    1. Spinners - which you have sorted
    2. Progress Bar - which I would like to smooth out
    3. Unlock and Call select - also like to smooth out

    thanks again for you time and guide

    Mitch

    So u would basically want a hyperdroid rom dont you :p

    Ill try to do the progress bar stuff today :)

    Sent from my GT-P1000 using Tapatalk
    1
    Great tutorial this new year!
    You are the man Doc ;)
    1
    Any screenshots from GB? I can try with ICS :D

    Screenshots? Impossible, you will need a video for it...ill give u a hint frames/sec :)
    Try to search for hyperdroid in youtube, there are plenty of videos there. Look at the spinnibg circle when the device is "thinking", its not pause like on stock, its smooth :)
    1
    Thank you very much for this interesting job.
    But what's about Sense GB ROMs?
    I've edited xml files according your tutorial in the framework-res.apk in my 3.5 Sense ROM for HD2 and received permanent FC of HTC Sense.:confused:
    Any advice?

    FC?, u edited and compiled framework?, I modded sense before (HTC Desire HD), and it fid not gave me problems. Upload your framework, Ill do it for ya. But it should work when compiling framework-res.apk.