[GUIDE] Porting ICS Progress bar to GB - Android Themes

I hope this isn't posted anywhere yet.
This is a simple guide of porting the ICS style progress_indeterminate_horizontal_holo to gingerbread.
The progress bar animation when downloading and installing applications on android.
Change from this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
to this
File to be edited:
framework-res\res\drawable\progress_indeterminate_horizontal.xml
Open it with notepad++ and paste this line of code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo1" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo2" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo3" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo4" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo5" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo6" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo7" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo8" />
</animation-list>
Additional Note: Edit your Styles.xml
And copy this attributes to it, look for Widget.ProgressBar.Horizontal and Widget.SeekBar
Code:
<style name="Widget.ProgressBar.Horizontal" parent="@style/Widget.ProgressBar">
<item name="maxHeight">16.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_indeterminate_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">16.0dip</item>
</style>
<style name="Widget.SeekBar" parent="@style/Widget">
<item name="focusable">true</item>
<item name="maxHeight">13.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">13.0dip</item>
<item name="thumb">@drawable/seek_thumb</item>
<item name="thumbOffset">16.0dip</item>
</style>
After it save the file place the files from the zip file to your desired drawable folder, on mine I used drawable-mdpi, and using apktool just compile your framework-res again, then you have the finish product.
If you liked my post, just press the THANKS button..:good:

No need to follow this post, First post Updated
In addition to this modification you need to follow this post too:
http://forum.xda-developers.com/showpost.php?p=24548972&postcount=4

Thanks, nice! Any chance you also know how to back-port Honeycomb/ICS notification framework to GB?

Replace or Place
Hey man, Do I need to place the code or REPLACE the existing one with that code?
I replace the existing code & picture and end with bootloop.....
Helpppppp:crying:
Thx a lot for this mod!:fingers-crossed:

Yes just replace it with the code above and extract the contents of ics progress bar.zip to your res\drawable-mdpi or hdpi. It's also working on 2.2 Froyo.

toxic77 said:
Yes just replace it with the code above and extract the contents of ics progress bar.zip to your res\drawable-mdpi or hdpi. It's also working on 2.2 Froyo.
Click to expand...
Click to collapse
C:\ANDROID STUFFS\APKTOOL>apktool if framework-res.apk
I: Framework installed to: C:\Users\alex\apktool\framework\1.apk
C:\ANDROID STUFFS\APKTOOL>apktool if semcgenericuxpres.apk
I: Framework installed to: C:\Users\alex\apktool\framework\2.apk
C:\ANDROID STUFFS\APKTOOL>apktool d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\ANDROID STUFFS\APKTOOL>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\ANDROID STUFFS\APKTOOL\framework-res\res\drawable\progress_indeterminate_hori
zontal.xml:1: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\alex\AppData\Local\Temp\AP
KTOOL4915893460393119994.tmp, -x, -S, C:\ANDROID STUFFS\APKTOOL\framework-res\re
s, -M, C:\ANDROID STUFFS\APKTOOL\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\alex\AppData\Local\Temp\APKTOOL4915893460393119994.tmp, -x, -S, C:\ANDROID
STUFFS\APKTOOL\framework-res\res, -M, C:\ANDROID STUFFS\APKTOOL\framework-res\An
droidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\ANDROID STUFFS\APKTOOL>
I get an error man

Error
Try this modded xml file and recompile the framework including the images to your drawable folder.

toxic77 said:
Try this modded xml file and recompile the framework including the images to your drawable folder.
Click to expand...
Click to collapse
I got bootloop

Mate maybe its not compatible with your device.

great!! one question, working in xperia arc s?

I have successfully went beyond porting only the inactive download animation from this guide but have also ported the entire ics progress bar as seen below in my own gb rom... I will add a how to in another post when I get the chance
Sent from my N860 using xda app-developers app

check here
Check here mate.
http://forum.xda-developers.com/showthread.php?t=1963469

Grrr... I took the time to do it myself... searched all over and only found this... oh well
Sent from my N860 using xda app-developers app

Thanks! worked great on the first try on a ZTE merit.

Related

Animated Pulldowns for GB ROMS - "How to"

First and foremost all credit goes to Alastrionia over at DF for cracking this.. Considering we haven't seen it anywhere else and most devs told us it wasn't possible w/o mega code writing.. but we prevailed (well, Alastrionia did) and he wanted to share it with the Android community... Here is a c&p of his OP over at DF.....
"First off this should work with all GB based roms that use systemui.apk
there may be subtle differences but the basics should be the same all around.
after much trial and error and ripping what little hair I have left out
success was mine and it's time to share this with everyone
and it's so simple that you'll love how fast you can integrate this into ROM's / themes / whatever your heart desires
1. take your systemui.apk and decompile it
2. navigate to layout folder
3. grab "status_bar_tracking.xml" and open it up in your editor
(now for the fun)
4. to the first line - "com.android.systemui.statusbar.TrackingView" add this ""android:background="@drawable/...anim.xml""
<com.android.systemui.statusbar.TrackingView android:background="@drawable/...anim.xml...>
5. after saving that, navigate back into the drawable folder and add your animation.xml file there
5a. next navigate into the drawable/hdpi folder and add your animated images
6. also in the drawable/hdpi folder find and open up the shade_bg.png with your editor and make it 100% transparent
7. now it's time to recompile your apk , following all the usual directions with that
8. enjoy your newly created systemui.apk with a pretty animated background. new and fresh and unlike anything before
that's it. done deal. it's super easy and fast and breathes life into true customization.
I used the stat_sys_upload.xml from the framework-res.apk as my base
all I had to do was change the timing and change the image names.
also you'll notice above - don't copy it word for word on the xml.
I did the "..." meaning whatever you decide to name your file."
*ADDED* - In the xml he says to add to the drawable folder, change the name of the anim_# pngs to something else like pulldown_anim1, pulldown_anim2, etc.. then make your new images that you add to the drawable-hdpi folder named the same, in sequence... Neither I nor Alastronia are responsible for your device so if you try this, it's at your own risk... but well worth that risk.. ... I don't have a video to post but I can confirm that this is legit and I am running one right now... I did test adding new png's via metamorph and zipthemer and it breaks the animation somehow... If I'm allowed to say this, shoot over to DF and locate Alastrionia and show him some donate love.. he very much deserves it... The possibilities are virtually endless as to customizing your pulldown now.. a slide show of loved ones, a cartoon image in motion, your fav boot animation, etc...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here's an example.. My MURDER gradually grows....
Exactly how is the animation(s)? Do you have a video or something?
Sent from my HTC Desire HD using XDA Premium App
I don't... sorry. But on df in the Droid themers section Alastrionia posted this thread and in the posts Mbk posted a video of the matrix one he made... right now we're using 5-8 anim_pngs so its still frame by frame but it's still very cool and totally different... on my screen shots, the "Murder" within the pulldown starts very small and gradually gets bigger....
Sent from my Droid using XDA App
deleted post because I think I know how now.
And here's for froyo and maybe eclair ROMs. My port
You need transparency hack enabled
Decompile framework-res.apk
Go to drawable-hdpi and make status_bar_background.png fully transparent with PS or GIMP
GO to layout and edit the 2nd line of status_bar_tracking.xml like this
<com.android.server.status.TrackingView android:background="@drawable/status_bar_background_animation" androidrientation="vertical" androidaddingLeft="0.0px" androidaddingRight="0.0px" androidaddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
where status_bar_background_animation links to status_bar_background_animation.xml in drawable folder(dont have it? create it), there you set the images and durations.
So pleased
Just got this running on my Htc Desire and should be able to go crazy with animations because of framework-res.apk being on sd-ext.
Thanks go to:
Alastrionia - for the original idea and coding.
santiemanuel - for the Froyo coding
B-boy® - for this thread
Thanks again all
santiemanuel said:
And here's for froyo and maybe eclair ROMs. My port
You need transparency hack enabled
Decompile framework-res.apk
Go to drawable-hdpi and make status_bar_background.png fully transparent with PS or GIMP
GO to layout and edit the 2nd line of status_bar_tracking.xml like this
<com.android.server.status.TrackingView android:background="@drawable/status_bar_background_animation" androidrientation="vertical" androidaddingLeft="0.0px" androidaddingRight="0.0px" androidaddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
where status_bar_background_animation links to status_bar_background_animation.xml in drawable folder(dont have it? create it), there you set the images and durations.
Click to expand...
Click to collapse
I'm with you until the create the xml part. Is it a similar layout to battery charge or sync animation xml?
http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
status_bar_background_animation.xml
That had me stumped at first.
Simply edit this xml to have the correct number off lines for your animation images. Also, you might need to edit the duration time before putting it in the /drawable folder.
download zip
LfcFan1977 said:
That had me stumped at first.
Simply edit this xml to have the correct number off lines for your animation images. Also, you might need to edit the duration time before putting it in the /drawable folder.
download zip
Click to expand...
Click to collapse
Sweet. Thank you.
http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
[help] idea
Instead of using status_bar_background.png, does anybody know how I might use status_bar_close_on.9.png instead?
@silverxbv2
There is a button for that
LfcFan1977 said:
Instead of using status_bar_background.png, does anybody know how I might use status_bar_close_on.9.png instead?
@silverxbv2
There is a button for that
Click to expand...
Click to collapse
Not from the app for some reason.
http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
After I finish steps 1-6, during the recompiling portion I get the following error using APK Manager:
Code:
C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res\layout\status_bar_tracking.xml:2: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\DSB\AppData\Local\Temp\APKTOOL3941090156111040610.tmp, -I, C:\Users\DSB\apktool\framework\1.apk, -S, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\DSB\AppData\Local\Temp\APKTOOL3941090156111040610.tmp, -I, C:\Users\DSB\apktool\framework\1.apk, -S, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Anyone know wtf I'm doing wrong?
Double check your syntax in status bar tracking xml.
http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
I think I added it right...
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.TrackingView android:background="@drawable/...anim.xml android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
@wewoapsiak
This is wrong.
Code:
<com.android.systemui.statusbar.TrackingView android:background="@drawable/...anim.xml android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
It should be more like.
Code:
<com.android.systemui.statusbar.TrackingView android:background="@drawable/status_bar_background_animation.xml android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
Then you need to create a status_bar_background_animation.xml to go in the /drawable folder.
Using this one (here) should be ok, just change the duration times and rename the pulldown#.png images to match your animation images.
[REQ]@B-boy
Can you please change the thread title to either include Froyo or remove the GB?
Froyo
Here is what I have come up with so far but I really need to figure out how to slimline it, framework-res.apk went from 7mb to 12mb.
LfcFan1977 said:
Here is what I have come up with so far but I really need to figure out how to slimline it, framework-res.apk went from 7mb to 12mb.
Click to expand...
Click to collapse
Wow! That looks amazing.
Thanks
Played about with the durations a little since I made that gif animation so NOTIFICATION" stay on for longer and a longer pause between scrolls.
Working on another version now and hopefully the framework will be smaller.
Is yours working now?
[Q][REQs]Froyo
Does anybody know how I can get transparency enabled for my animation images on Froyo?
Transparency is enable for my status_bar_background.png but if I use transparency on my animation png's I get bootloop and black screen exactly when the lockscreen should appear.
LfcFan1977 said:
Thanks
Is yours working now?
Click to expand...
Click to collapse
No I still get this error while compiling
Code:
C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res\layout\status_bar_tracking.xml:2: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\DSB\AppData\Local\Temp\APKTOOL8047304496797767486.tmp, -I, C:\Users\DSB\apktool\framework\1.apk, -S, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\DSB\AppData\Local\Temp\APKTOOL8047304496797767486.tmp, -I, C:\Users\DSB\apktool\framework\1.apk, -S, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, C:\Users\DSB\Android\Personalization\Theming stuff\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
No clue what invalid token is, I made the line look like this:
Code:
<com.android.systemui.statusbar.TrackingView android:background="@drawable/status_bar_background_animation.xml android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
And I'm using Notepad++ to edit the xml file.

[Q] how to change the text color in the submenu on FroyoBread | v019

Can anyone help me or point me in the right direction. I want to change the text color in the submenu highlighted in the pic. I can't find the xml that controls it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

			
				
I because of this dont use dark themes.
Sent from my X8 using XDA Premium App
have the same problem... it's realy anoing,
maybe there will be a tool to change text colors in the next update...
You have to change the style in values/style to this:
<style name="Theme.ExpandedMenu" parent="@android:style/Theme">
<item name="android:listViewStyle">@android:style/Widget.ListView</item>
<item name="android:textColor">@android:color/bright_foreground_dark</item>
<style name="TextAppearance.Widget.IconMenu.Item" parent="@android:style/TextAppearance.Small">
<item name="android:textColor">@color/bright_foreground_dark</item>
Then you will get white text.The expanded menu is for the more window in menu.
alfsamsung said:
You have to change the style in values/style
Click to expand...
Click to collapse
could u be more specific??? where is that location ?
in .xml from FroyoBread | v020
style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLargeInverse</item>
.
they are different
<style name="Theme.ExpandedMenu" parent="@android:style/Theme">
<item name="android:listViewStyle">@android:style/Widget.ListView</item>
<item name="android:textColor">@android:color/bright_foreground_dark</item>
edit:SOLVED
seeing as you guys seem to know how do i change the colour that something glows when its pressed.....for example in the screenshot above the search button is selected and its blue how do i change that?
dmcb123 said:
seeing as you guys seem to know how do i change the colour that something glows when its pressed.....for example in the screenshot above the search button is selected and its blue how do i change that?
Click to expand...
Click to collapse
It's an image in res/drawable-mdpi/menuitem_background_pressed
i can´t find the .xml help please
Could you upload the xml file? or the file is inside theme.apk?
megagas22 said:
i can´t find the .xml help please
Click to expand...
Click to collapse
1. pull framework-res.apk from phone/rom
2. Decompile framework-res.apk to see folder res/values (if you not decompile folder values is not there)
3. in folder values is styles.xml file end change this line
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLargeInverse</item>
and
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
change whit this line
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">[COLOR="Red"]@color/bright_foreground_dark</item>[/COLOR]
and
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">[COLOR="Red"]@color/bright_foreground_dark</item>[/COLOR]
4. compile framework-res.apk
5. sing framework-res.apk
6. and finale push framework-res.apk in phone and reboot
Then you will get white text.The expanded menu is for the more window in menu.
cesaraph said:
Could you upload the xml file? or the file is inside theme.apk?
Click to expand...
Click to collapse
Sorry for my bad english!!!
dulemilosevski said:
1. pull framework-res.apk from phone/rom
2. Decompile framework-res.apk to see folder res/values (if you not decompile folder values is not there)
3. in folder values is styles.xml file end change this line
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLargeInverse</item>
and
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
change whit this line
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">[COLOR="Red"]@color/bright_foreground_dark</item>[/COLOR]
and
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">[COLOR="Red"]@color/bright_foreground_dark</item>[/COLOR]
4. compile framework-res.apk
5. sing framework-res.apk
6. and finale push framework-res.apk in phone and reboot
Then you will get white text.The expanded menu is for the more window in menu.
Sorry for my bad english!!!
Click to expand...
Click to collapse
OK, i decompiled it, edited it, recompiled it, but couldn't sign it, i read i had to copy the file resources.arsc from build folder to the root of the framework-res.apk, i did it, replaced the file in framework folder, restarted my phone and it stuck on boot. on the other hand I'm using windows 7, and i think i need linux environment, am I right?
I use alfsamsung methode n get apk manager to decompile it,but when compile it i got error mssge .but im ignore it n keep the work.
After finish,i push it to system but nothing change
Edit: solved, by changing the colour on drawable-mdpi
cruizz said:
I use alfsamsung methode n get apk manager to decompile it,but when compile it i got error mssge .but im ignore it n keep the work.
After finish,i push it to system but nothing change
Sent from my X8 using XDA Premium App
Click to expand...
Click to collapse
for FroyoBread | v022 | 23-07-11
http://forum.xda-developers.com/showpost.php?p=15946457&postcount=3757

[TUT]How To port lollipop framework [ICS+]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi, today I want to help you port Android 5.0 framework
Guide its simple, you need to just know how to edit .xml files​
1. How to port Dialog Window
Screen:
Click to expand...
Click to collapse
Tutorial
1. Decompile your framework-res apk
2. Go to /res/layout and open alert_dialog_holo.xml
3. Find the line that starts with the
Code:
<View android:id="@id/titleDividerTop"
and delete this line
Do the same with line the starts with
Code:
<View android:id="@id/titleDivider"
4. Now find this line
Code:
<TextView android:id="@id/message" android:paddingLeft="16.0dip" android:paddingTop="8.0dip" android:paddingRight="16.0dip" android:paddingBottom="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" style="?android:attr/textAppearanceMedium" />
And edit to look like this (red elements are elements which we are changing)
Code:
<TextView android:id="@id/message" [COLOR="Red"]android:paddingLeft="24.0dip"[/COLOR] android:paddingTop="8.0dip" [COLOR="Red"]android:paddingRight="24.0dip"[/COLOR] [COLOR="Red"]android:paddingBottom="24.0dip"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" style="?android:attr/textAppearanceMedium" />
5. Now we are going to edit buttons,
Find line with this id android:id="@id/buttonPanel" and delete from this line these three parameters
Code:
[COLOR="RoyalBlue"]android:divider="?dividerHorizontal"[/COLOR]
[COLOR="RoyalBlue"]android:showDividers="beginning"[/COLOR]
[COLOR="RoyalBlue"]android:dividerPadding="0.0dip"[/COLOR]
In this line (under line with id/buttonPanel)
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="true" android:layoutDirection="locale" style="?android:attr/buttonBarStyle">
add this paramteters, anywhere you want
Code:
android:layout_marginLeft="24.0dip" android:layout_marginRight="24.0dip" android:paddingBottom="16.0dip" android:paddingTop="16.0dip"
After adding, line should look like this
Code:
<LinearLayout android:orientation="horizontal" [COLOR="Red"]android:layout_marginLeft="24.0dip" [/COLOR][COLOR="Red"]android:layout_marginRight="24.0dip" [/COLOR][COLOR="Red"]android:paddingBottom="16.0dip"[/COLOR] [COLOR="Red"]android:paddingTop="16.0dip"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="true" android:layoutDirection="locale" style="?android:attr/buttonBarStyle">
6. Now we are going to lines which starts with <Button tag (should be 3 )
Change (IN ALL 3 LINES)
Code:
android:textSize="14.0sp"
to
Code:
android:textSize="[COLOR="Red"]17.0sp[/COLOR]"
Now, in lines with android:id="@id/button2" and android:id="@id/button3" add this tag
Code:
android:textAllCaps="true"
Lines shoud look like this:
Code:
<Button android:textSize="17.0sp" android:textAllCaps="true" android:id="@id/button2" ... />
<Button android:textSize="17.0sp" android:textAllCaps="true" android:id="@id/button3" ... />
• In line with
Code:
android:id="@id/button1"
add this:
Code:
android:textStyle="bold" android:textAllCaps="true" android:textColor="@color/holo_blue_light"
line should look like this
Code:
<Button android:textSize="17.0sp" android:textStyle="bold" android:textAllCaps="true" android:textColor="@color/holo_blue_light" android:id="@id/button1" .... />
(If you have any problem check my alert_dialog_holo.xml in attach)
7. Now save changes, recompile & sign apk and push to /system/framework
2. How to port List Separators
Screen:
Click to expand...
Click to collapse
Tutorial
1. Download list separators.rar from attach and extract it to your drawable-xxhdpi folder (if you dont' have it just create now folder in /res called drawable-xxhdpi)
2. Now open styles.xmlin /res/values
•Find this style
Code:
<style name="Widget.TextView.ListSeparator" parent="@style/Widget.TextView">
Under this style you find parameter <item name="textColor"> change his value to #ff009587
• Now, in this style find and delete this line:
Code:
<item name="background">@drawable/dark_header_dither</item>
•Now edit this line
Code:
<item name="layout_width">fill_parent</item>
to look like this:
Code:
<item name="layout_width">[COLOR="Red"]wrap_content[/COLOR]</item>
3. Now we are looking this line
Code:
<item name="android:background">@drawable/list_section_divider_holo_dark</item>
edit this line to look like this
Code:
<item name="android:background">@drawable/[COLOR="Red"]list_section_divider_holo_dark_lollipop[/COLOR]</item>
• Now search this line:
Code:
<item name="android:background">@drawable/list_section_divider_holo_light</item>
end edit to look like this
Code:
<item name="android:background">@drawable/[COLOR="Red"]list_section_divider_holo_light_lollipop[/COLOR]</item>
4.You're done! Now recompile, sign and push to /system/framework
01.11.2014
Added Dialog & Separators guides
My tutorial How to port Lolipop Check boxes and Radio buttons with animations
Cool
wow
I'll add some new stuffs ASAP
(UP)
Can you make for my resolution my resolution is ldpi please make it i want to try it please
because i can any theme created for my tablet my tablet is unknown but i know it's name
Ok
I'll made it for all res
What about animation bro
Sent from my ST25i using Tapatalk
Sir what is the color code are using in this <color name="holo_blue_light"></color>
Punkzappa09 said:
Sir what is the color code are using in this <color name="holo_blue_light"></color>
Click to expand...
Click to collapse
Is color from your framework-res (/res/values/colors)
Hello , thank you for your tutorial you know how to remove the lines in the settings ? This is an .xml file ?
Thank you .
Sure, can you post tour decompiled settings.apk?
KuaQ said:
Sure, can you post tour decompiled settings.apk?
Click to expand...
Click to collapse
If you give me the way I do , thank you .
EDIT : You need exactly ?
---------- Post added at 06:56 PM ---------- Previous post was at 06:27 PM ----------
KuaQ said:
Sure, can you post tour decompiled settings.apk?
Click to expand...
Click to collapse
Ok the simplest , I send you, thank you .
http://www.partage-facile.com/TXDUDPN0Q6/secsettings.zip.html
dragonballz said:
If you give me the way I do , thank you .
EDIT : You need exactly ?
---------- Post added at 06:56 PM ---------- Previous post was at 06:27 PM ----------
Ok the simplest , I send you, thank you .
http://www.partage-facile.com/TXDUDPN0Q6/secsettings.zip.html
Click to expand...
Click to collapse
So..
In your styles.xml find line
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo" />
and replace it with this:
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo">
<item name="android:listViewStyle">@style/MyListViewStyle</item>
<item name="android:listSeparatorTextViewStyle">@style/ListSeparator</item>
</style>
Now add this 2 styles in your styles.xml
Code:
<style name="ListSeparator" parent="@*android:style/Widget.DeviceDefault.Light.TextView.ListSeparator">
<item name="android:background">#00000000</item>
</style>
Code:
<style name="MyListViewStyle" parent="@android:style/Widget.ListView">
<item name="android:divider">#00000000</item>
<item name="android:dividerHeight">1px</item>
</style>
Shoud working, I dont test it. pleas report if working or not. Of course you can add your own parametr in to this styles like text color or size..
KuaQ said:
So..
In your styles.xml find line
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo" />
and replace it with this:
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo">
<item name="android:listViewStyle">@style/MyListViewStyle</item>
<item name="android:listSeparatorTextViewStyle">@style/ListSeparator</item>
</style>
Now add this 2 styles in your styles.xml
Code:
<style name="ListSeparator" parent="@*android:style/Widget.DeviceDefault.Light.TextView.ListSeparator">
<item name="android:background">#00000000</item>
</style>
Code:
<style name="MyListViewStyle" parent="@android:style/Widget.ListView">
<item name="android:divider">#00000000</item>
<item name="android:dividerHeight">1px</item>
</style>
Shoud working, I dont test it. pleas report if working or not. Of course you can add your own parametr in to this styles like text color or size..
Click to expand...
Click to collapse
Thank you , but it does not work :crying:
dragonballz said:
Thank you , but it does not work :crying:
Click to expand...
Click to collapse
What does it means: recompiling error/fc/lines are still there?
KuaQ said:
What does it means: recompiling error/fc/lines are still there?
Click to expand...
Click to collapse
Not the lines are still apparent
KuaQ said:
What does it means: recompiling error/fc/lines are still there?
Click to expand...
Click to collapse
Here is my modified styles.xml may be I have an error !!!
Sir thanks for this awesome guide, will this work for jelly bean 4.2.2?

(HOW TO) Change All Of Status Bar Icons On Lollipop (Battery, Signal, Etc).

Hello, this is my first thread
As you guys know, all of status bar icons in lollipop was hidden by google. There's no .png image in drawable folder for battery icon, signal, etc. That means, we're not able to change it with another image. But finally, i'm sucessfully change it. Now, we can say good bye to that annoying battery icon (yes, this tutorial is for kitkat too). Lets move to the tutorial.
Sorry for my bad english.
WHAT YOU NEED:
1). Brain
2). Patient
3).Apktool
4). Systemui.apk
5). Some .png images.
1). HOW TO CHANGE THAT ANNOYING BATTERY IMAGE?
Go to THIS thread. This guy will help you. All credit goes to him.
2). HOW TO CHANGE ANOTHER IMAGE ON YOUR STATUS BAR:
-). Decompile your Systemui.apk
-). Go to res/drawable.
-) In this folder, you will see the xml files for any icons on your status bar.
-). Delete those xml file. For example, if you wanna change the signal icon, just delete that stat_sys_signal_0, stat_sys_signal_0_fully, bla bla bla. Remember that xml file name before you delete it (Important!?).
-). Put that .png images for replacing xml files that you was deleted before on any drawable folder that fits your resolution (mine is drawable-hdpi). Ex: if you delete that stat_sys_signal_0 on your drawable folder, then you have to put that stat_sys_signal_0.png to replace it.
-). After you finish replacing all xml files with .png images, recompile it.
-). Don't forget to sign it and push into your system.
-). Done!
Here's my result on my device running cm12 for taoshan:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Can you share your SystemUI? I am taoshan user too
thanks
Bro can you share this battery icons ?
slir
upload ui plzzz
whychand said:
Hello, this is my first thread
As you guys know, all of status bar icons in lollipop was hidden by google. There's no .png image in drawable folder for battery icon, signal, etc. That means, we're not able to change it with another image. But finally, i'm sucessfully change it. Now, we can say good bye to that annoying battery icon (yes, this tutorial is for kitkat too). Lets move to the tutorial.
Sorry for my bad english.
WHAT YOU NEED:
1). Brain
2). Patient
3).Apktool
4). Systemui.apk
5). Some .png images.
1). HOW TO CHANGE THAT ANNOYING BATTERY IMAGE?
Go to THIS thread. This guy will help you. All credit goes to him.
2). HOW TO CHANGE ANOTHER IMAGE ON YOUR STATUS BAR:
-). Decompile your Systemui.apk
-). Go to res/drawable.
-) In this folder, you will see the xml files for any icons on your status bar.
-). Delete those xml file. For example, if you wanna change the signal icon, just delete that stat_sys_signal_0, stat_sys_signal_0_fully, bla bla bla. Remember that xml file name before you delete it (Important!?).
-). Put that .png images for replacing xml files that you was deleted before on any drawable folder that fits your resolution (mine is drawable-hdpi). Ex: if you delete that stat_sys_signal_0 on your drawable folder, then you have to put that stat_sys_signal_0.png to replace it.
-). After you finish replacing all xml files with .png images, recompile it.
-). Don't forget to sign it and push into your system.
-). Done!
Here's my result on my device running cm12 for taoshan:
Click to expand...
Click to collapse
@whychand can you upload your systemui ?
or statusbar icon ?
thanks
Thanks for the guide. I'm trying it now
Hope this process of decompile & recompile SystemUI will be simplified via xposed modules once xposed framework is working on lollipop
hi
reversegear said:
Thanks for the guide. I'm trying it now
Hope this process of decompile & recompile SystemUI will be simplified via xposed modules once xposed framework is working on lollipop
Click to expand...
Click to collapse
Dis u try this? If yes plz let me know did it work for u?
rajeshnitk said:
Dis u try this? If yes plz let me know did it work for u?
Click to expand...
Click to collapse
actually im interested in battery mods. for other components i use CM12 Themes
tried this guide http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361/ and struck in this
Code:
!! You will do it manually so find your last drawable hex code and continue to it.. Then save & close..
still trying thank you for the reminder
reversegear said:
actually im interested in battery mods. for other components i use CM12 Themes
tried this guide http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361/ and struck in this
Code:
!! You will do it manually so find your last drawable hex code and continue to it.. Then save & close..
still trying thank you for the reminder
Click to expand...
Click to collapse
Dont worry about this open public.xml and search drawable and the last drawable you get is your code
Tech N You said:
Dont worry about this open public.xml and search drawable and the last drawable you get is your code
Click to expand...
Click to collapse
i'm bit confused
can you help me in determining of hex code
ive attached my public.xml file
reversegear said:
i'm bit confused
can you help me in determining of hex code
ive attached my public.xml file
Click to expand...
Click to collapse
This your last drawable code <public type="drawable" name="APKTOOL_DUMMY_00fb" id="0x7f0200fb" />
Copy and paste these codes just after the above line highlighted in bold. Search for the above line in bold using Ctrl+F and just after that paste these codes.
Code:
<public type="drawable" name="stat_sys_battery" id="0x7f0200fc" />
<public type="drawable" name="stat_sys_battery_charge" id="0x7f0200fbd" />
it should look like this in your public.xml The bold part in this should be added where I added.
Code:
<public type="drawable" name="APKTOOL_DUMMY_0039" id="0x7f020039" />
<public type="drawable" name="APKTOOL_DUMMY_00ee" id="0x7f0200ee" />
<public type="drawable" name="APKTOOL_DUMMY_00f8" id="0x7f0200f8" />
<public type="drawable" name="APKTOOL_DUMMY_00fb" id="0x7f0200fb" />
[B]<public type="drawable" name="stat_sys_battery" id="0x7f0200fc" />
<public type="drawable" name="stat_sys_battery_charge" id="0x7f0200fd" />[/B]
<public type="mipmap" name="ic_daydreams" id="0x7f030000" />
<public type="mipmap" name="ic_launcher_dreams" id="0x7f030001" />
<public type="layout" name="app_circle_sidebar" id="0x7f040000" />
<public type="layout" name="carrier_label" id="0x7f040001" />
<public type="layout" name="circle_list_item" id="0x7f040002" />
Hope this helps. Hit thanks if I helped.
Tech N You said:
This your last drawable code <public type="drawable" name="APKTOOL_DUMMY_00fb" id="0x7f0200fb" />
Copy and paste these codes just after the above line highlighted in bold. Search for the above line in bold using Ctrl+F and just after that paste these codes.
Code:
<public type="drawable" name="stat_sys_battery" id="0x7f0200fc" />
<public type="drawable" name="stat_sys_battery_charge" id="0x7f0200fbd" />
it should look like this in your public.xml The bold part in this should be added where I added.
Code:
<public type="drawable" name="APKTOOL_DUMMY_0039" id="0x7f020039" />
<public type="drawable" name="APKTOOL_DUMMY_00ee" id="0x7f0200ee" />
<public type="drawable" name="APKTOOL_DUMMY_00f8" id="0x7f0200f8" />
<public type="drawable" name="APKTOOL_DUMMY_00fb" id="0x7f0200fb" />
[B]<public type="drawable" name="stat_sys_battery" id="0x7f0200fc" />
<public type="drawable" name="stat_sys_battery_charge" id="0x7f0200fd" />[/B]
<public type="mipmap" name="ic_daydreams" id="0x7f030000" />
<public type="mipmap" name="ic_launcher_dreams" id="0x7f030001" />
<public type="layout" name="app_circle_sidebar" id="0x7f040000" />
<public type="layout" name="carrier_label" id="0x7f040001" />
<public type="layout" name="circle_list_item" id="0x7f040002" />
Hope this helps. Hit thanks if I helped.
Click to expand...
Click to collapse
But same code already available in this lines
Code:
<public type="drawable" name="ic_qs_signal_g" id="0x7f0200fc" />
<public type="drawable" name="ic_qs_signal_h" id="0x7f0200fd" />
thanks I finally did it...
Thanks bro
I am not able to decompile lollipop system apks. I get this:
[*] _INPUT_APK\framework-res.apk
decompiling _INPUT_APK\framework-res.apk...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(Unknown Source)
at brut.androlib.res.decoder.StringBlock.read(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
... 9 more
[*] _INPUT_APK\SystemUI.apk
decompiling _INPUT_APK\SystemUI.apk...
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(Unknown Source)
at brut.androlib.res.decoder.StringBlock.read(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
... 9 more
Click to expand...
Click to collapse
whychand said:
Hello, this is my first thread
As you guys know, all of status bar icons in lollipop was hidden by google. There's no .png image in drawable folder for battery icon, signal, etc. That means, we're not able to change it with another image. But finally, i'm sucessfully change it. Now, we can say good bye to that annoying battery icon (yes, this tutorial is for kitkat too). Lets move to the tutorial.
Sorry for my bad english.
WHAT YOU NEED:
1). Brain
2). Patient
3).Apktool
4). Systemui.apk
5). Some .png images.
1). HOW TO CHANGE THAT ANNOYING BATTERY IMAGE?
Go to THIS thread. This guy will help you. All credit goes to him.
2). HOW TO CHANGE ANOTHER IMAGE ON YOUR STATUS BAR:
-). Decompile your Systemui.apk
-). Go to res/drawable.
-) In this folder, you will see the xml files for any icons on your status bar.
-). Delete those xml file. For example, if you wanna change the signal icon, just delete that stat_sys_signal_0, stat_sys_signal_0_fully, bla bla bla. Remember that xml file name before you delete it (Important!?).
-). Put that .png images for replacing xml files that you was deleted before on any drawable folder that fits your resolution (mine is drawable-hdpi). Ex: if you delete that stat_sys_signal_0 on your drawable folder, then you have to put that stat_sys_signal_0.png to replace it.
-). After you finish replacing all xml files with .png images, recompile it.
-). Don't forget to sign it and push into your system.
-). Done!
Here's my result on my device running cm12 for taoshan:
Click to expand...
Click to collapse
reversegear said:
Thanks for the guide. I'm trying it now
Hope this process of decompile & recompile SystemUI will be simplified via xposed modules once xposed framework is working on lollipop
Click to expand...
Click to collapse
pls my android version is 2.3.6 but am running on a lollipop custom rom.can i also use this tut for theming my statusbar?
anyone know how to shift the signal icon to left fence, to close to the battery icon, im using cm12
thanks.
nilanko said:
I am not able to decompile lollipop system apks. I get this:
Click to expand...
Click to collapse
Did you load your framework-res.apk before decompiling?
bwar85 said:
Did you load your framework-res.apk before decompiling?
Click to expand...
Click to collapse
Thanks for response but all I needed was the new apktool, I was using an older one..
Where can i find the icon pack that are in the op
Please name icons pack
---------- Post added at 07:32 PM ---------- Previous post was at 07:19 PM ----------
what icon pack is that?

[Guide][Add own action bar, background, etc in any app]

Hi Guys, This is a guide to add own theme action bar, background, list separators, etc) in any system/user apps like settings, contacts, mms , etc. Which doesn't have own theme , they are controlled by framework-res.apk
I have used it in Kitkat and Jellybean, not sure about other versions :silly:
Let's start
Requirements -
Apktool
Text editor
Patience
ADD OWN ACTION BAR
1. Decompile the app in which you wanna add your action bar. I'll take settings.apk
2. Open androidmanifest.xml
Search for <application
And scroll down, u'll find android:theme
In my Androidmanifest it is "android:theme="@style/Theme.Settings" it is different in all apps. Copy the theme that is Theme.Settings in my app.
3. Now open styles.xml and search whatever you copied. In my case it is "Theme.Settings"
4. Now add the following Red color highlighted lines.
Code:
<style name="Theme.Settings" parent="@android:style/Theme.Holo">
[COLOR="Red"]<item name="android:actionBarStyle">@style/Widget.Holo.Light.ActionBar.Solid.Inverse</item>[/COLOR]
5. Add the following codes below before </resources>
Code:
<style name="Widget.Holo.Light.ActionBar.Solid.Inverse" parent="@android:style/Widget.DeviceDefault.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/ab_solid_dark_holo</item>
<item name="android:displayOptions">showTitle</item>
<item name="android:titleTextStyle">@style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse</item>
<item name="android:backgroundSplit">@drawable/ab_bottom_solid_dark_holo</item>
</style>
<style name="TextAppearance.Holo.Widget.ActionBar.Title.Inverse" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse">
<item name="android:icon">@android:color/transparent</item>
<item name="android:textSize">17.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">#ffffffff</item>
</style>
6. Now copy ur desired pngs in drawable-hdpi and change their their name to ab_solid_dark_holo and ab_bottom_solid_dark_holo
- ab_solid_dark_holo is for action bar and ab_bottom_solid_dark_holo for bottom action bar.
- <item name="android:icon">@android:color/transparent</item> is for making ur apps's icon transparent, if you wanna make it visible then don't add this line..
7. If u don't wanna add pngs and copy following red color highlighed codes to drawables.xml , u'll get it in values folder.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
[COLOR="Red"]<item type="drawable" name="ab_solid_dark_holo">#00000000</item>
<item type="drawable" name="ab_bottom_solid_dark_holo">#00000000</item>[/COLOR]
</resources>
- If u don't have drawables.xml then create it in values folder and copy all lines... :good:
I'll add more when I will get time..
Credits -
@vibhu0009
@Droidbuster
MAAaD
And of course me for creating it
Hit thanks if this guide is useful for you
Reserved
Reserved 2
i had this error when recompiling
I: Copying classes.dex file...
I: Building resources...
/sdcard/external_sd/Settings_src/res/values/styles.xml:57: error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:73: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.DeviceDefault.Light.ActionBar.Solid.Inverse'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:77: error: Error: No resource found that matches the given name: attr 'android:backgroundSplit'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:75: error: Error: No resource found that matches the given name: attr 'android:displayOptions'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:76: error: Error: No resource found that matches the given name: attr 'android:titleTextStyle'.
/sdcard/external_sd/Settings_src/res/values/styles.xml:79: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL7101752027673499559.tmp, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/2.apk, -S, /sdcard/external_sd/Settings_src/res, -M, /sdcard/external_sd/Settings_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL7101752027673499559.tmp, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/2.apk, -S, /sdcard/external_sd/Settings_src/res, -M, /sdcard/external_sd/Settings_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL7101752027673499559.tmp, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/2.apk, -S, /sdcard/external_sd/Settings_src/res, -M, /sdcard/external_sd/Settings_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
itsraj011 said:
Hi Guys, This is a guide to add own theme action bar, background, list separators, etc) in any system/user apps like settings, contacts, mms , etc. Which doesn't have own theme , they are controlled by framework-res.apk
I have used it in Kitkat and Jellybean, not sure about other versions :silly:
Let's start
Requirements -
Apktool
Text editor
Patience
ADD OWN ACTION BAR
1. Decompile the app in which you wanna add your action bar. I'll take settings.apk
2. Open androidmanifest.xml
Search for <application
And scroll down, u'll find android:theme
In my Androidmanifest it is "android:theme="@style/Theme.Settings" it is different in all apps. Copy the theme that is Theme.Settings in my app.
3. Now open styles.xml and search whatever you copied. In my case it is "Theme.Settings"
4. Now add the following Red color highlighted lines.
Code:
<style name="Theme.Settings" parent="@android:style/Theme.Holo">
[COLOR="Red"]<item name="android:actionBarStyle">@style/Widget.Holo.Light.ActionBar.Solid.Inverse</item>[/COLOR]
5. Add the following codes below before </resources>
Code:
<style name="Widget.Holo.Light.ActionBar.Solid.Inverse" parent="@android:style/Widget.DeviceDefault.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/ab_solid_dark_holo</item>
<item name="android:displayOptions">showTitle</item>
<item name="android:titleTextStyle">@style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse</item>
<item name="android:backgroundSplit">@drawable/ab_bottom_solid_dark_holo</item>
</style>
<style name="TextAppearance.Holo.Widget.ActionBar.Title.Inverse" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse">
<item name="android:icon">@android:color/transparent</item>
<item name="android:textSize">17.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">#ffffffff</item>
</style>
6. Now copy ur desired pngs in drawable-hdpi and change their their name to ab_solid_dark_holo and ab_bottom_solid_dark_holo
- ab_solid_dark_holo is for action bar and ab_bottom_solid_dark_holo for bottom action bar.
- <item name="android:icon">@android:color/transparent</item> is for making ur apps's icon transparent, if you wanna make it visible then don't add this line..
7. If u don't wanna add pngs and copy following red color highlighed codes to drawables.xml , u'll get it in values folder.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
[COLOR="Red"]<item type="drawable" name="ab_solid_dark_holo">#00000000</item>
<item type="drawable" name="ab_bottom_solid_dark_holo">#00000000</item>[/COLOR]
</resources>
- If u don't have drawables.xml then create it in values folder and copy all lines... :good:
I'll add more when I will get time..
Credits -
@vibhu0009
@Droidbuster
MAAaD
And of course me for creating it
Hit thanks if this guide is useful for you
Click to expand...
Click to collapse
Very useful..
Find Error In Styles.xml

Categories

Resources