Theme Chooser/CM10 Help - Adding Styles into the style sheet xml... - Android Themes

I'm trying to add a style from an app... Swype... into the style.xml of my theme... I cannot for the life of me get it to compile correctly...
Does anyone know how to include a style from another app into a themes style.xml?
I've called the style in the com_nuance_swype_input.xml
" <item name="style/Swype">@style/com_nuance_swype_input_Swype</item>
<item name="style/Swype.Classic">@style/com_nuance_swype_input_Swype.Classic</item>
"
...and I've added the styles into the style.xml but it just won't work...
<style name="com_nuance_swype_input_Swype">
(there is nothing in this style in the original APK but I figured it would have to be in here as it is the parent)
</style>
<style name="com_nuance_swype_input_Swype.Classic" parent="@style/com_nuance_swype_input_Swype">
<item name="candidateComponent">#ffffa200</item>
etc...
</style>
All I get is this error: Error: No resource found that matches the given name:
Suggestions? I've attached my files...

I've added the entire styles, other attributes to the theme chooser and it causes the themes to disappear.
Sent from my Galaxy Nexus using Tapatalk 2

Related

[theme for all device] translucence's course !!

hi, everyone !
Diving in this bbs a long time,
now i share an course of translucence for all the android devices!
Preface:
1.a pc..
2.tool:apktool1.4.3 and jre..
3.decomple your ROM's framework-res.apk
Chapter 1 [Edit ../res/values/sytles.xml]
1.search "Theme", edit the content in "<style name="Theme"> </style>"
Code:
<item name="colorBackground">@color/transparent</item>
<item name="windowBackground">@color/background</item>
<item name="windowShowWallpaper">true</item>
2.search "Theme.Black", edit the content in "<style name="Theme.Black" parent="@style/Theme"></style>"
Code:
<item name="windowBackground">@color/background</item>
<item name="windowShowWallpaper">true</item>
3.search "Theme.ExpandedMenu", add code to the content in "<style name="Theme.ExpandedMenu" parent="@style/Theme"></sytle>"
Code:
<item name="windowBackground">@color/expandedmenu</item>
<item name="windowShowWallpaper">false</item>
4.search "Theme.NoTitleBar", add code to the content in "<style name="Theme.NoTitleBar" parent="@style/Theme"></sytle>"
Code:
<item name="windowShowWallpaper">false</item>
5.search "Theme.Light", add code to the content in "<style name="Theme.Light" parent="@style/Theme"></sytle>"
Code:
<item name="windowShowWallpaper">false</item>
Chapter 2 [Edit ../res/values/colors.xml]
add code to colors.xml:
Code:
<color name="background">#c0000000</color>
<color name="expandedmenu">#20000000</color>
View attachment 922139
View attachment 922140
View attachment 922141
if your rom is 2.2 or below;
when u comple framework-res.apk;
when replace the resources.arsc, plz storage it without compress;
if your rom is 2.3 or above, not this problem.
Can you tell me how to change the size of font.i know i need to edit style.xml but i don't know what change.
you can use spareparts.apk to change the font size.
Sent from my U8500 using XDA App
myscue said:
you can use spareparts.apk to change the font size.
Sent from my U8500 using XDA App
Click to expand...
Click to collapse
I know that but i want to know how it done through edit the xml file.

[Q] How To Edit progress_horizontal.xml ?

Hi.. i wanna change my Volume Progress Bar. and i figure out that the "progress_horizontal.xml" is the file needed to be edit, but i don't know how. i wanna make mine look like the ICS just a thin Line. but i want a different color a white one. but i don't know how to change the color and how to make the thick yellow progres bar to a thin white line............
by the way im using GinggerYoshi...
any help? Thanks in Advance!
Have a look a t the sources / resources of ICS (framework/base), there you can find what you need to modify the progress / seek layout.
If you have the sources of GingerYoshi (which I do not expect ) then you can edit the xml files with an editor, change the required images and rebuild.
If you don't have the sources you will need first to decompile framework_res.apk (for example by using apktool), before you can edit the xml. After that you need to re-compile everything. *But* it's not guaranteed, that this will always work ...
For changing the color of the progress bar images, you need to use draw9patch tool, because they are .9.png.
B.t.w. I suggest you to have a look at G1 Themes and Wallpapers or Arrow
[GUIDE] Want to learn how to theme?
AndDiSa said:
Have a look a t the sources / resources of ICS (framework/base), there you can find what you need to modify the progress / seek layout.
If you have the sources of GingerYoshi (which I do not expect ) then you can edit the xml files with an editor, change the required images and rebuild.
If you don't have the sources you will need first to decompile framework_res.apk (for example by using apktool), before you can edit the xml. After that you need to re-compile everything. *But* it's not guaranteed, that this will always work ...
For changing the color of the progress bar images, you need to use draw9patch tool, because they are .9.png.
B.t.w. I suggest you to have a look at G1 Themes and Wallpapers or Arrow
[GUIDE] Want to learn how to theme?
Click to expand...
Click to collapse
thanks for the help!, yeah i don't have the ginger yoshi sources
but i will try your advice... and that forum that you linked, thanks again!
You need to modify this areas if you wanna make it thinner "Widget.ProgressBar.Horizontal" and "Widget.SeekBar" in framework-res.apk\res\values something like this:
Code:
<style name="Widget.ProgressBar.Horizontal" parent="@style/Widget.ProgressBar">
<item name="maxHeight">5.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">5.0dip</item>
</style>
<style name="Widget.SeekBar" parent="@style/Widget">
<item name="focusable">true</item>
<item name="maxHeight">5.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">5.0dip</item>
<item name="thumb">@drawable/seek_thumb</item>
<item name="thumbOffset">8.0dip</item>
DorianX said:
You need to modify this areas if you wanna make it thinner "Widget.ProgressBar.Horizontal" and "Widget.SeekBar" in framework-res.apk\res\values something like this:
Code:
<style name="Widget.ProgressBar.Horizontal" parent="@style/Widget.ProgressBar">
<item name="maxHeight">5.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">5.0dip</item>
</style>
<style name="Widget.SeekBar" parent="@style/Widget">
<item name="focusable">true</item>
<item name="maxHeight">5.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">5.0dip</item>
<item name="thumb">@drawable/seek_thumb</item>
<item name="thumbOffset">8.0dip</item>
Click to expand...
Click to collapse
Thanks a lot.. by the way. I tried your Froyo Cream Sandwich and i'ts great.
junio07 said:
Thanks a lot.. by the way. I tried your Froyo Cream Sandwich and i'ts great.
Click to expand...
Click to collapse
and change color for have pannel white type here-> http://s15.postimg.org/ooqhsxltn/Screenshot_2014_12_27_13_55_01.png

Semc APK Editing (Colors, Text, Background)

hi, i just play around bit with apktool and try to edit some SEMC apks's-
at the moment im editing SemcAlbum.
So far its quiet clear, and with google i can search me many informations. i hav eno problem with editing Gridsize etc.
but i have some problem now. maybe someone can give me a hint.
as you can see on the pics, i was able to modify the background of the top bars and also of the main window.
one o fmy problems is, i have no idea why the darker grey part isnt same color like upper part. i try to get one color. i edited the pngs all same color, and i also edited some lines in /res/values/colors.xml and styles.xml
but im not sure, it looks like there is some shadow over the darker grey part. maybe someone has an idea what line i have to modify?
thats my colors.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="online_services_background_color">#ffc1c2c1</color>
<color name="default_background_color">#ff000000</color>
<color name="background_image_color">#ffc1c2c1</color>
<color name="default_highlight_color">#ff09afed</color>
<color name="default_selected_color">#ff00ccff</color>
<color name="fullscreen_actionlayer_color">#d9000000</color>
<color name="marker_badge_text_color">#aa000000</color>
<color name="album_color_band">#fffa5f1b</color>
<color name="dashboard_info_background_color">#aa000000</color>
</resources>
the styles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Album" parent="@*android:style/Theme.DeviceDefault">
<item name="android:colorBackground">@color/default_background_color</item>
<item name="android:windowBackground">@color/default_background_color</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowFullscreen">true</item>
<item name="android:colorBackgroundCacheHint">@color/default_background_color</item>
<item name="android:actionBarStyle">@style/Album.ActionBar</item>
<item name="android:displayOptions"></item>
<item name="android:windowActionBarOverlay">true</item>
<item name="android:actionBarTabStyle">@style/Album.ActionBarTabStyle</item>
<item name="android:actionBarTabTextStyle">@style/Album.ActionBarTabTextStyle</item>
<item name="com.sonyericsson.uxp:directionality">leftToRight</item>
</style>
<style name="Album.ActionBar" parent="@*android:style/Widget.DeviceDefault.ActionBar.Solid">
<item name="android:background">@drawable/semc_ab_solid_dark_holo</item>
<item name="android:displayOptions">showHome</item>
<item name="android:backgroundStacked">@drawable/semc_ab_stacked_solid_dark_holo</item>
</style>
<style name="Album.TextAppearance.Small.Primary" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textColor">#ff292929</item>
</style>
<style name="Album.TextAppearance.Small.Secondary" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textColor">#ff292929</item>
</style>
<style name="Album.TextAppearance.ListInfo.Small" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textColor">#ff292929</item>
</style>
<style name="Album.TextAppearance.Micro" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textSize">12.0sp</item>
</style>
<style name="Album.TextAppearance.Micro.Secondary" parent="@style/Album.TextAppearance.Micro">
<item name="android:textColor">#ff292929</item>
</style>
<style name="Album.ActionBarTabTextStyle" parent="@*android:style/Widget.DeviceDefault.ActionBar.TabText">
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff292929</item>
<item name="android:textAllCaps">false</item>
</style>
<style name="Album.ActionBarTabStyle" parent="@*android:style/Widget.DeviceDefault.ActionBar.TabView">
<item name="android:background">@drawable/actionbar_tabselector</item>
</style>
<style name="Album.ButtonBar" parent="@*android:style/ButtonBar" />
<style name="Album.TextAppearance.DividerLabelTitleStyle" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textSize">16.0sp</item>
<item name="android:textColor">?android:textColorPrimary</item>
</style>
<style name="Album.TextAppearance.DividerLabelItemCountStyle" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textSize">16.0sp</item>
<item name="android:textColor">?android:textColorSecondary</item>
</style>
<style name="Album.TextAppearance.CommentsLikesCountStyle" parent="@*android:style/TextAppearance.DeviceDefault.Medium" />
</resources>
my second problem:
on the left picture you see the red marked Text, i was able to edit it, before it was a light text.
and my question about textcolor is, is it possible to edit the still white text?
i looked in the .xml files, but yet have no idea how i can fix. maybe its not possible to fix it inside SemcAlbum.apk?
Summary:
id like to modify all lighttext to darktext
id like to have all Background in one grey color (lightgrey)
maybe someone has an idea?
You'll need to find and modify the xml that calls for "ab_solid_light_holo.9" which is in framework-res.apk. That's if there is an xml calling for the image.
The colors will be controlled most likely through res/colors/ or res/styles.xml you just need to find the right value. They are probably being pulled from framework-res also.
They are probably quite easy to trace back.
Start by opening all xmls in SemcAlbum with notepad++ and search for "ab_solid_light_holo" in all opened xmls. if you dont get a hit it's probably being called through styles.
Go to styles.xml in SemcAlbum and have a read though the names and values, theyre normally self explanatory.
I'd help you more but i'm a bit busy.:good:
thanks, but i not have such lines in .xml files
lets see my steps, i edited every png/9.png same color (light grey, code c1c2c1)
i found out i have pngs with filename semc_ab_solid_dark_holo.9 > edited to c1c2c1 colorcode
thats what i see in colors.xml
Code:
<color name="online_services_background_color">#ffc1c2c1</color>
[U]<color name="default_background_color">#ffc1c2c1</color>
<color name="background_image_color">#ffc1c2c1</color>[/U]
<color name="default_highlight_color">#ff09afed</color>
<color name="default_selected_color">#ff00ccff</color>
<color name="fullscreen_actionlayer_color">#d9000000</color>
<color name="marker_badge_text_color">#aa000000</color>
<color name="album_color_band">#fffa5f1b</color>
<color name="dashboard_info_background_color">#aa000000</color>
i edited <color name="default_background_color">#ffc1c2c1</color>
<color name="background_image_color">#ffc1c2c1</color>
in my styles.xml i have this
Code:
<resources>
<style name="Theme.Album" parent="@*android:style/Theme.DeviceDefault">
[U]<item name="android:colorBackground">@color/default_background_color</item>
<item name="android:windowBackground">@color/default_background_color</item>[/U]
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowFullscreen">true</item>
<item name="android:colorBackgroundCacheHint">@color/default_background_color</item>
<item name="android:actionBarStyle">@style/Album.ActionBar</item>
<item name="android:displayOptions"></item>
<item name="android:windowActionBarOverlay">true</item>
<item name="android:actionBarTabStyle">@style/Album.ActionBarTabStyle</item>
<item name="android:actionBarTabTextStyle">@style/Album.ActionBarTabTextStyle</item>
<item name="com.sonyericsson.uxp:directionality">leftToRight</item>
</style>
<style name="Album.ActionBar" parent="@*android:style/Widget.DeviceDefault.ActionBar.Solid">
[U] <item name="android:background">@drawable/semc_ab_solid_dark_holo</item>[/U]
<item name="android:displayOptions">showHome</item>
[U]<item name="android:backgroundStacked">@drawable/semc_ab_stacked_solid_dark_holo</item>[/U]
you see, the AlbumActionBar has background defined with drawable/semc_ab_solid_dark_holo and it works, i edited the pngs, and the action is lightgrey c1c2c1
but the ThemeAlbum has background defined with color/default_background_color
color/default_background_color is defined in the colors.xml, right? in the colors.xml i have <color name="default_background_color">#ffc1c2c1</color>
but still, its a darker grey, like on the pictures
hm whats with this line in the styles.xml?
<color name="default_background_color">#ffc1c2c1</color>
<color name="background_image_color">#ffc1c2c1</color>
whats the difference between these two? :silly:
My apologies mate i read it wrong last night. I thought you wanted the top the same color as the bottom.
Are the backgrounds not normally controlled by the Semc theme?
SemcAlbum- styles.xml
Code:
<style name="Theme.Album" parent="@*android:style/Theme.DeviceDefault">
framework-res- styles.xml
Code:
<style name="Theme.DeviceDefault"
<item name="windowBackground">@com.sonyericsson.uxp:drawable/semc_bg</item>
SemcGenericUxpRes- semc_bg.xml
Code:
<bitmap android:src="@drawable/[COLOR="Red"]semc_bg_tile[/COLOR]" android:tileMode="repeat"
semc_bg_tile usually changes with the Sony themes. Have you tried changing the theme to see if the album background changes?
I dont use Sony apps so i cant try myself.

[Q] change Apk Background Problem.. HELP!

Hello to all of you
First, I want to say my English sucks... sor....
I want to ask you some problem
I want change my settings's background.
it's style.xml backgrounds reference framework-res Theme
but I don't want change theme default background
because other apk also reference this theme
I want only change settings background
who can help me...
and can i do this? I edit settings style.xml Red lines are my edits
</style>
<style name="Theme.Holo" parent="@*android:style/Theme.DeviceDefault.Light" />
<item name="windowbackground">@*android:drawable/senc_myimg</item>
<style name="Theme.Holo.NoActionBar" parent="@*android:style/Theme.DeviceDefault.Light.NoActionBar" />
<style name="Theme.Holo.Dialog" parent="@*android:style/Theme.DeviceDefault.Light.Dialog" />
<style name="Theme.Holo.DialogWhenLarge" parent="@*android:style/Theme.DeviceDefault.Light.DialogWhenLarge">
<item name="android:directionality">true</item>
The last question @drawable/XXXXX AND @*drawable/xxxxx OR @*/@android:drawble/xxxx Difference

[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