Thx for the wonderful feature! the_original_teknikl. Keep up the great work!
Sent from a Wicked S3 running Wicked-X
Sent from a Wicked S3 running Wicked-X
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
<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" />
<item android:state_pressed="true" android:drawable="@drawable/pulldown_bar_on" />
<item android:drawable="@drawable/pulldown_bar_off" />
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.
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.
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 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 ReleativeLayout, still looking into this
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
@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
<item android:state_pressed="true" android:drawable="@drawable/pulldown_bar_on" />
<item android:drawable="@drawable/pulldown_bar_off" />
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
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.
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!!!
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.
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.
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
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)<item android:duration="100" android:drawable="@drawable/pulldown_animXXXX" />
(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!!!
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" />
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 MOARok. so after some testing and failure... i have come to the conclusion that these will not be simply universal....
they will be rom specific.