Please rate the "KEWL" factor of this mod.

  • This is old news man... you wasted your time.

    Votes: 0 0.0%
  • Awesome! Thanks for bringing this to TW KK 4.4.2.

    Votes: 24 100.0%

  • Total voters
    24
Search This thread

talkingmonkeys

Inactive Recognized RC / RT
May 15, 2013
2,644
4,415
Not quite sure what I'm doing wrong here following everything but it won't recompile telling me it can't find the animated pulldown images. I went and edited your pulldown.xml in the guide to fix this. by adding pulldown_anim before each of the numbers. Attached is the file. Thank you this is working well. Also grayscaled all your images to fit in with my theme. Thank you for this sweet mod man, Now to do the pulldown bar also.

https://www.dropbox.com/s/24nfj0niiqzh8wa/pulldown.xml
 

the_original_teknikl

Senior Member
Mar 22, 2013
942
3,113
Not quite sure what I'm doing wrong here following everything but it won't recompile telling me it can't find the animated pulldown images. I went and edited your pulldown.xml in the guide to fix this. by adding pulldown_anim before each of the numbers. Attached is the file. Thank you this is working well. Also grayscaled all your images to fit in with my theme. Thank you for this sweet mod man, Now to do the pulldown bar also.

https://www.dropbox.com/s/24nfj0niiqzh8wa/pulldown.xml

Hmmm... I thought I had the xml packed that matched the image names..... Thanks for the heads up man... I'll get that fixed.

EDIT: got it fixed and reuploaded to that post... thanks again @talkingmonkeys
 
Last edited:
  • Like
Reactions: n00b-xda-disciple

talkingmonkeys

Inactive Recognized RC / RT
May 15, 2013
2,644
4,415
Hmmm... I thought I had the xml packed that matched the image names..... Thanks for the heads up man... I'll get that fixed.

EDIT: got it fixed and reuploaded to that post... thanks again @talkingmonkeys

No problem man don't mean to go off topic but after I test it to make sure theres no problems I will be releasing a guide to add OG Battery Mod :good:

@the_original_teknikl I can't get the pulldown bar to work right. Not sure of how to fix that one but its still my standard gray one. Am I missing something to have it point it in the right direction maybe?

Open drawable/tw_close_handle_bg.xml and look for these 3 lines

Code:
<item android:state_pressed="true" android:drawable="@drawable/tw_close_handle_bg_press" />
    <item android:state_focused="true" android:drawable="@drawable/tw_close_handle_bg_press" />
    <item android:drawable="@drawable/tw_close_handle_bg_normal" />

Replace the above with this

Code:
<item android:state_pressed="true" android:drawable="@drawable/pulldown_bar_on" />
    <item android:drawable="@drawable/pulldown_bar_off" />
 
Last edited:

the_original_teknikl

Senior Member
Mar 22, 2013
942
3,113
No problem man don't mean to go off topic but after I test it to make sure theres no problems I will be releasing a guide to add OG Battery Mod :good:

@the_original_teknikl I can't get the pulldown bar to work right. Not sure of how to fix that one but its still my standard gray one. Am I missing something to have it point it in the right direction maybe?

Open drawable/tw_close_handle_bg.xml and look for these 3 lines

Code:
<item android:state_pressed="true" android:drawable="@drawable/tw_close_handle_bg_press" />
    <item android:state_focused="true" android:drawable="@drawable/tw_close_handle_bg_press" />
    <item android:drawable="@drawable/tw_close_handle_bg_normal" />

Replace the above with this

Code:
<item android:state_pressed="true" android:drawable="@drawable/pulldown_bar_on" />
    <item android:drawable="@drawable/pulldown_bar_off" />

Hmm I didn't have to do all that... I included the xmls... Just drag and drop in the folders and edit the on and off xmls to customize the animation.

If ur using dazednconfuseds pulldown mod for the single bar... He made changes so it might be different... I can make a posting of that too when I look at it.... Not actually using that mod tho.....

Are the steps above what you did on the single bar pulldown mod?

Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
 
  • Like
Reactions: talkingmonkeys

talkingmonkeys

Inactive Recognized RC / RT
May 15, 2013
2,644
4,415
Hmm I didn't have to do all that... I included the xmls... Just drag and drop in the folders and edit the on and off xmls to customize the animation.

If ur using dazednconfuseds pulldown mod for the single bar... He made changes so it might be different... I can make a posting of that too when I look at it.... Not actually using that mod tho.....

Are the steps above what you did on the single bar pulldown mod?

Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.

Think so because that's what it took to get it working

Sent from my SGH-I747 using XDA Premium 4 mobile app
 

the_original_teknikl

Senior Member
Mar 22, 2013
942
3,113
Alright... I'll add that to the op for the single bar pulldown mod to add animation... When I get a chance.

Thanks for the info.....

Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
 
  • Like
Reactions: talkingmonkeys

pharmdeon

Senior Member
Jun 12, 2013
292
453
Messing around today with a gif i found on google and this mod:thumbup::cool:...

Sent from my SPH-L710 using xda premium
 

Attachments

  • uploadfromtaptalk1403503382060.jpg
    uploadfromtaptalk1403503382060.jpg
    45.1 KB · Views: 171
  • uploadfromtaptalk1403503394243.jpg
    uploadfromtaptalk1403503394243.jpg
    45.5 KB · Views: 171
  • uploadfromtaptalk1403503409332.jpg
    uploadfromtaptalk1403503409332.jpg
    46.7 KB · Views: 166
  • uploadfromtaptalk1403503422322.jpg
    uploadfromtaptalk1403503422322.jpg
    51.2 KB · Views: 161

talkingmonkeys

Inactive Recognized RC / RT
May 15, 2013
2,644
4,415
I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR :)

What I was thinking is the following (for making ANY number of pulldown images work, including a static one)

In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)

Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)

In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.

I've had a similar one but I was thinking of just adding a toggle in settings to have it look for either the animated ones file or the static one. Just not exactly sure how to write whats needed for this.
 

the_original_teknikl

Senior Member
Mar 22, 2013
942
3,113
I've had a similar one but I was thinking of just adding a toggle in settings to have it look for either the animated ones file or the static one. Just not exactly sure how to write whats needed for this.

Wish I had the knowledge at this time to do that... But I'm still learning smali and init.d scripts so it's above my level of knowledge.... Can't wait to see what you guys can do with this tho :)

Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
 

the_original_teknikl

Senior Member
Mar 22, 2013
942
3,113
I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR :)

What I was thinking is the following (for making ANY number of pulldown images work, including a static one)

In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)

Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)

In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.

If you ever get this working.... Would you consider sharing it?

Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
 

deuce_biggins

Senior Member
Mar 14, 2014
1,006
2,192
Detroit
I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR :)

What I was thinking is the following (for making ANY number of pulldown images work, including a static one)

In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)

Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)

In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.

hey @CNexus, i know dwitherell has a toggle for this working in his rom (Tweaked 3.0) in the Note 3 threads. I was going to try get with him for the knowledge. I would love to implement this as well in my rom, and the toggle would be perfect.

I believe that it requires an image (perhaps a .9.png for the static bg) and a few pulldown.xml's, the status_bar_expanded may have to change from a FrameLayout to a RelativeLayout, still looking into this
 
Last edited:

talkingmonkeys

Inactive Recognized RC / RT
May 15, 2013
2,644
4,415
hey @CNexus, i know dwitherell has a toggle for this working in his rom (Tweaked 3.0) in the Note 3 threads. I was going to try get with him for the knowledge. I would love to implement this as well in my rom, and the toggle would be perfect.

I believe that it requires an image (perhaps a .9.png for the static bg) and a few pulldown.xml's, the status_bar_expanded may have to change from a frameLayout to a ReleativeLayout, still looking into this

Keep me updated aswell. Looking to add this to my rom too.
 

the_original_teknikl

Senior Member
Mar 22, 2013
942
3,113
Keep me updated aswell. Looking to add this to my rom too.

I think just about everyone is lol... I know a few people who don't even like the animations... But want a way to switch back and forth to show others what they can do with their phone because of people like us..

Seems to be very popular....

And once we have a toggle.... I'm sure there will be many new animations if we can get around the decompile and recompile steps....
 
Last edited:

CNexus

Senior Member
May 17, 2012
9,010
14,000
~/android
Google Pixel 7
hey @CNexus, i know dwitherell has a toggle for this working in his rom (Tweaked 3.0) in the Note 3 threads. I was going to try get with him for the knowledge. I would love to implement this as well in my rom, and the toggle would be perfect.

I believe that it requires an image (perhaps a .9.png for the static bg) and a few pulldown.xml's, the status_bar_expanded may have to change from a FrameLayout to a RelativeLayout, still looking into this

I'll definitely be looking into this
 
  • Like
Reactions: talkingmonkeys

*wii360*

Senior Member
Feb 9, 2014
325
506
Saarbrücken
@the_original_teknikl
Thank you for this great mod, I was looking for it since it stopped at my s2.
The animated Pulldown is working well on omega rom 35 \ s4 but the bar isn't. I get no errors in compile and don't know what is wrong.

Gesendet von meinem GT-I9505 mit Tapatalk
 
  • Like
Reactions: ted77usa

the_original_teknikl

Senior Member
Mar 22, 2013
942
3,113
@the_original_teknikl
Thank you for this great mod, I was looking for it since it stopped at my s2.
The animated Pulldown is working well on omega rom 35 \ s4 but the bar isn't. I get no errors in compile and don't know what is wrong.

Gesendet von meinem GT-I9505 mit Tapatalk

have you tried changeing drawable/tw_close_handle_bg.xml to point to the new xmls as in the second quote in post #4?

if you have, try looking thru the xmls in res/drawable and res/layout and look for anything pointing to

tw_close_handle_bg_normal

or

tw_close_handle_bg_press

and change them to match this
note: just change the "tw_close_handle_bg_press" and "tw_close_handle_bg_normal" in those lines

Code:
<item android:state_pressed="true" android:drawable="@drawable/pulldown_bar_on" />
    <item android:drawable="@drawable/pulldown_bar_off" />

your systemui may pull them from another xml
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    An example of what I mean by ANIMATED STATUS BAR PULL DOWN BACKGROUND can be found HERE

    This is the thread I followed to get a feel for how to do it. ---> http://xdaforums.com/showthread.php?t=1143675

    Ok, after seeing a few posts a few days ago talking about people having animated status bar pulldown backgrounds, I decided to do some research because I had never heard of this before.

    I noticed that for some reason the mod stopped with ICS.

    So I decided to create a thread on how to add this feature to your ROM, or the ROM you are currently running.

    The edits are very simple, actually, pretty much exact to the GB version of the mod.... however, they can be a little time consuming based on just how many images you would like to add to your animation.

    In POST #2, I have posted a guide on how to add add this feature to your TOUCHWIZ KITKAT 4.4.2 ND8/NDC ROM. (other phones also running touchwiz kitkat should be relatively similair, depending on if your systemui.apk is where the background is pulled from.)

    In POST #3, I have posted a guide for user/themer's, on how to create your own animations and use them with this mod.

    In POST #4, I have posted a guide on how to add animation to the statusbar PULLDOWN bar.

    In POST #6 I would like to link to animations posted by you... To make it easier to find the animations... Why not have them posted in the thread explaining how to create them... But I'll need your help on this one.



    I would like to send a thank you to....
    @bilgerryan
    @tdunham
    @dazednconfused
    @CNexus
    and
    @erikalin ...

    Without your answers to a few questions I've had or tuts on how to do something... I wouldn't have this mod... Or a few others that I've put out....

    So thank you guys for your help.
    13
    Dev instructions

    Dev instructions on how to add this mod to your touchwiz kitkat 4.4.2 based rom is located below:

    Please remember to hit thanks if you like or use this mod.

    NOTE: To get this to work with your rom... Read THIS POST..... To customize the animation read POST #3 and POST #4.

    Step 1 - Download the AnimatedPulldownMod.zip I have attached below.

    Step 2 - Open the zip and extract the two files somewhere on your desktop.

    Step 3 - Decompile your systemui.apk from your rom using apktool or what ever tool you use to decompile apps.

    Step 4 - Navigate to the res/drawable folder in your decompiled app and the "pulldown.xml" from my zip to this folder.....

    Step 5 - Navigate to the res/drawable-xhdpi folder, (or whatever folder your rom uses), and do the same for the "pulldown_animxxxx.png" images into your open folder..... You can now delete my files.

    Step 6 - Navigate to "res/layout" folder and open "status_bar_expanded.xml" open it with an xml editor such as notepad++ or virtuos ten studio.

    Step 7 - In line 2 of that file you should see this..

    <com.android.systemui.statusbar.phone.notificationpanelview android:id="@id/notification_panel" android:background="@drawable/twcustom"................

    change the background to look like this android:background="@drawable/pulldown" so the image background gets directed to the pulldown.xml file you just put in your res/drawable folder.

    Step 8 - Save and close this file now to prevent any conflicts while recompiling the app.

    Step 9 - Once you have the images in the proper folder, edited the status_bar_expanded.xml file, and put the pulldown.xml file in your res/drawable folder... Recompile your apk and name it something different, like new.apk...

    Step 10 - Open both the original systemui.apk and the new new.apk you just built, with 7-zip (that is what i recommend)

    Step 11 - Drag the resourses.arsc and classes.dex file from the new.apk into the original systemui.apk.... Do the same for the res folder in the new.apk

    Step 12 - Add to your rom and enjoy!!!
    9
    Dev/Themer Instructions

    THEMER INSTRUCTIONS FOR CREATING YOUR OWN ANIMATIONS AND EDITING THE ABOVE FILES TO WORK WITH YOUR NEW ANIMATIONS.

    Please remember to hit thanks if you like or use this mod.

    This guide is assuming you have either performed the DEV MOD in the post above or you are on a rom that has.... AND..... you already have the custom images you would like to use for your animation. If you do not, I recommend reading the guide created by @erikalin on how to create your own images

    If you ever want to learn, the tutorial I made up on another device thread shows the process. I made a video tutorial too - me talking and walking through the process of grabbing a video and turning it into an animation. FWIW, just sharing the love. Link is: written tutorial or video tutorial. Just replace with your own image sizes and file names, same process.

    As stated above, the process is the same.

    You could also search GOOGLE or XDA FORUMS for how to create frame by frame png animations... WARNING!!! It can be time consuming.

    NOTE:Read POST #4 to learn how to create a flashable zip for other users of your, and all other roms based on your phone carriers android version that have the mod above, to use.

    Ok, so if you want to use a different animation than what i have inside the mod, you will have to edit the xml inside of Systemui.apk.

    Step 1 - Decompile the SystemUI.apk that already has the mod described in POST #2

    Step 2 - Navigate to the res/drawable folder and open pulldown.xml

    Step 3 - Count HOW MANY images are in your animation

    Step 4 - Add or remove these lines
    <item android:duration="100" android:drawable="@drawable/pulldown_animXXXX" />
    in that xml file you just opened to match the amount of images in your animation (see the next step to see what to name the images)
    (THIS FILE ONLY CONTAINS THIS SPECIFIC MOD... DO NOT WORRY ABOUT BREAKING ANYTHING ELSE IF YOU MESS UP...OTHER THAN THE SYSTEMUI FORCE CLOSING WHEN REBOOTING....THIS IS WHERE THE BACKUP COMES IN HANDY.... JUST FOLLOW THE NEXT STEP AND YOU WILL BE OK) (USE THAT FILE AS A TEMPLATE FOR HOW YOURS SHOULD LOOK ONCE FINISHED) (REMEMBER TO HIT SAVE ONCE YOU ARE DONE EDITING THIS XML FILE.)

    Step 5 - Rename your images to "pulldown_animXXXX.png" ... replacing the "XXX" with numbers starting at 0 ---> so if you have 10 images, you will start with pulldown_anim0 and end with pulldown_anim9

    Step 6 - Move those newly named images to the res/drawable-xhdpi folder

    Step 7 - Recompile the app and name it something else other than SystemUI.apk

    Step 8 - Open BOTH the original SystemUI.apk and the new apk you just created with 7-zip

    Step 9 - Drag the "resources.arsc" file, "classes.dex" file and the entire "res" folder from the NEW apk INTO THE ORIGINAL SYSTEMUI.APK

    Step 10 - Push the MODIFIED systemui.apk (NOT THE NEW ONE YOU JUST CREATED) into the priv/app folder on you phone with a root explorer and reboot..... or remove the systemui from my zip above and replace with yours and flash.....

    Step 11 - ENJOY!!!
    9
    instructions for adding animated pulldown bar

    Follow this if you are on the STOCK systemui.apk

    Step 1 - Download the zip below.

    Step 2 - In your decompiled systemui.apk, Navigate to the res/drawable folder and drop all 3 xmls from the zip, into this folder.

    Step 3 - Navigate to the res/drawable-xhdpi and drop the images from the zip into this folder.

    Step 4 - Recompile the apk and enjoy.

    Note: Use the same methods for the previous posts to customize your own animation.... what i did was put the same animation on both the close and open animations.... but you can have one for opening and one for closing... your choice.

    These are instructions courtesy of @talkingmonkeys for how to add the mod if you are using @dazednconfused single bar pulldown mod.

    Open drawable/tw_close_handle_bg.xml and look for these 3 lines

    Code:
    <item android:state_pressed="true" android:drawable="@drawable/tw_close_handle_bg_press" />
        <item android:state_focused="true" android:drawable="@drawable/tw_close_handle_bg_press" />
        <item android:drawable="@drawable/tw_close_handle_bg_normal" />

    Replace the above with this

    Code:
    <item android:state_pressed="true" android:drawable="@drawable/pulldown_bar_on" />
        <item android:drawable="@drawable/pulldown_bar_off" />
    5
    ok. so after some testing and failure... i have come to the conclusion that these will not be simply universal....

    they will be rom specific.
    I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR :)

    What I was thinking is the following (for making ANY number of pulldown images work, including a static one)

    In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)

    Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)

    In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.