[Q] how to change the text color in the submenu on FroyoBread | v019 - XPERIA X8 Q&A, Help & Troubleshooting

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

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.

[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?

turn on light/black theme in framework-res

Hi all iam apk5656 with my guide here i will explain how to turn on black/light theme on your android device
i tested it on my gb vista v7 jb rom but i dont know if this will work on 4.0+
ok lets start
there are to themes skins the black one and the light one in your framework-res
the black one is helpful if you want to theme your framework-res to jb/ics style
and the light one is helpful if you want to theme your framework-res to kk/lolipop light style
if you want to turn on light/black theme just continue with my guide here
turn on the the black one example in settings.apk
{
"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"
}
decompile your framework-res and navigate to res/values/styles.xml
open it and search for <style name="Theme.Light" parent="@style/Theme"> (if you didnt find it search for <style name="Theme"> )
and you will find codes like this
Code:
<style name="Theme.Light" parent="@style/Theme">
<item name="colorForeground">@color/bright_foreground_light</item>
<item name="colorBackground">@color/background_light</item>
<item name="textColorPrimary">@color/primary_text_light</item>
<item name="textColorPrimaryDisableOnly">@color/primary_text_light_disable_only</item>
<item name="textColorSecondary">@color/secondary_text_light</item>
<item name="textColorPrimaryInverse">@color/primary_text_dark</item>
<item name="textColorSecondaryInverse">@color/secondary_text_dark</item>
<item name="textColorPrimaryNoDisable">@color/primary_text_light_nodisable</item>
<item name="textColorSecondaryNoDisable">@color/secondary_text_light_nodisable</item>
<item name="textColorPrimaryInverseNoDisable">@color/primary_text_dark_nodisable</item>
<item name="textColorSecondaryInverseNoDisable">@color/secondary_text_dark_nodisable</item>
<item name="textColorHintInverse">@color/hint_foreground_dark</item>
<item name="textCheckMark">@drawable/indicator_check_mark_light</item>
<item name="textCheckMarkInverse">@drawable/indicator_check_mark_dark</item>
<item name="windowBackground">@drawable/screen_background_light</item>
<item name="expandableListViewStyle">@style/Widget.ExpandableListView.White</item>
<item name="listViewStyle">@style/Widget.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.ProgressBar.Inverse</item>
<item name="progressBarStyleSmall">@style/Widget.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLarge">@style/Widget.ProgressBar.Large.Inverse</item>
<item name="textColorHint">@color/hint_foreground_light</item>
<item name="colorForegroundInverse">@color/bright_foreground_light_inverse</item>
<item name="listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator.White</item>
<item name="textColorTertiary">@color/tertiary_text_light</item>
<item name="textColorTertiaryInverse">@color/tertiary_text_dark</item>
<item name="listDivider">@drawable/divider_horizontal_bright</item>
<item name="progressBarStyleInverse">@style/Widget.ProgressBar</item>
<item name="progressBarStyleSmallInverse">@style/Widget.ProgressBar.Small</item>
<item name="progressBarStyleLargeInverse">@style/Widget.ProgressBar.Large</item>
<item name="textColorPrimaryInverseDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="gestureOverlayViewStyle">@style/Widget.GestureOverlayView.White</item>
</style>
just make it look like this one but dont copy my whole xml just compare it
Code:
<style name="Theme.Light" parent="@style/Theme">
<item name="colorForeground">@color/bright_foreground_light</item>
<item name="colorBackground">@color/transparent</item>
<item name="textColorPrimary">@color/primary_text_dark</item>
<item name="textColorPrimaryDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="textColorSecondary">@color/secondary_text_dark</item>
<item name="textColorPrimaryInverse">@color/primary_text_light</item>
<item name="textColorSecondaryInverse">@color/secondary_text_light</item>
<item name="textColorPrimaryNoDisable">@color/primary_text_dark_nodisable</item>
<item name="textColorSecondaryNoDisable">@color/secondary_text_dark_nodisable</item>
<item name="textColorPrimaryInverseNoDisable">@color/primary_text_light_nodisable</item>
<item name="textColorSecondaryInverseNoDisable">@color/secondary_text_light_nodisable</item>
<item name="textColorHintInverse">@color/hint_foreground_light</item>
<item name="textCheckMark">@drawable/indicator_check_mark_dark</item>
<item name="textCheckMarkInverse">@drawable/indicator_check_mark_light</item>
<item name="windowBackground">@drawable/screen_background_light</item></item>
<item name="expandableListViewStyle">@style/Widget.ExpandableListView.White</item>
<item name="listViewStyle">@style/Widget.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.ProgressBar.Inverse</item>
<item name="progressBarStyleSmall">@style/Widget.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLarge">@style/Widget.ProgressBar.Large.Inverse</item>
<item name="textColorHint">@color/hint_foreground_light</item>
<item name="colorForegroundInverse">@color/bright_foreground_light_inverse</item>
<item name="listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator.White</item>
<item name="textColorTertiary">@color/tertiary_text_light</item>
<item name="textColorTertiaryInverse">@color/tertiary_text_dark</item>
<item name="listDivider">@drawable/divider_horizontal_bright</item>
<item name="progressBarStyleInverse">@style/Widget.ProgressBar</item>
<item name="progressBarStyleSmallInverse">@style/Widget.ProgressBar.Small</item>
<item name="progressBarStyleLargeInverse">@style/Widget.ProgressBar.Large</item>
<item name="textColorPrimaryInverseDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="gestureOverlayViewStyle">@style/Widget.GestureOverlayView.White</item>
</style>
now recompile your framework-res and push it to your system/framework folder and give it the right permissions and tada you turned on the black theme
turn on the the light one example in settings.apk
decompile your framework-res and navigate to the same file (styles.xml)
open it and search for <style name="Theme.Light" parent="@style/Theme"> (if you didnt find it search for <style name="Theme"> )
and you will find codes like this
Code:
<style name="Theme.Light" parent="@style/Theme">
<item name="colorForeground">@color/bright_foreground_light</item>
<item name="colorBackground">@color/transparent</item>
<item name="textColorPrimary">@color/primary_text_dark</item>
<item name="textColorPrimaryDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="textColorSecondary">@color/secondary_text_dark</item>
<item name="textColorPrimaryInverse">@color/primary_text_light</item>
<item name="textColorSecondaryInverse">@color/secondary_text_light</item>
<item name="textColorPrimaryNoDisable">@color/primary_text_dark_nodisable</item>
<item name="textColorSecondaryNoDisable">@color/secondary_text_dark_nodisable</item>
<item name="textColorPrimaryInverseNoDisable">@color/primary_text_light_nodisable</item>
<item name="textColorSecondaryInverseNoDisable">@color/secondary_text_light_nodisable</item>
<item name="textColorHintInverse">@color/hint_foreground_light</item>
<item name="textCheckMark">@drawable/indicator_check_mark_dark</item>
<item name="textCheckMarkInverse">@drawable/indicator_check_mark_light</item>
<item name="windowBackground">@drawable/screen_background_light</item>
<item name="expandableListViewStyle">@style/Widget.ExpandableListView.White</item>
<item name="listViewStyle">@style/Widget.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.ProgressBar.Inverse</item>
<item name="progressBarStyleSmall">@style/Widget.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLarge">@style/Widget.ProgressBar.Large.Inverse</item>
<item name="textColorHint">@color/hint_foreground_light</item>
<item name="colorForegroundInverse">@color/bright_foreground_light_inverse</item>
<item name="listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator.White</item>
<item name="textColorTertiary">@color/tertiary_text_light</item>
<item name="textColorTertiaryInverse">@color/tertiary_text_dark</item>
<item name="listDivider">@drawable/divider_horizontal_bright</item>
<item name="progressBarStyleInverse">@style/Widget.ProgressBar</item>
<item name="progressBarStyleSmallInverse">@style/Widget.ProgressBar.Small</item>
<item name="progressBarStyleLargeInverse">@style/Widget.ProgressBar.Large</item>
<item name="textColorPrimaryInverseDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="gestureOverlayViewStyle">@style/Widget.GestureOverlayView.White</item>
</style>
just make it look like this one but dont copy my whole xml just compare it
Code:
<style name="Theme.Light" parent="@style/Theme">
<item name="colorForeground">@color/bright_foreground_light</item>
<item name="colorBackground">@color/background_light</item>
<item name="textColorPrimary">@color/primary_text_light</item>
<item name="textColorPrimaryDisableOnly">@color/primary_text_light_disable_only</item>
<item name="textColorSecondary">@color/secondary_text_light</item>
<item name="textColorPrimaryInverse">@color/primary_text_dark</item>
<item name="textColorSecondaryInverse">@color/secondary_text_dark</item>
<item name="textColorPrimaryNoDisable">@color/primary_text_light_nodisable</item>
<item name="textColorSecondaryNoDisable">@color/secondary_text_light_nodisable</item>
<item name="textColorPrimaryInverseNoDisable">@color/primary_text_dark_nodisable</item>
<item name="textColorSecondaryInverseNoDisable">@color/secondary_text_dark_nodisable</item>
<item name="textColorHintInverse">@color/hint_foreground_dark</item>
<item name="textCheckMark">@drawable/indicator_check_mark_light</item>
<item name="textCheckMarkInverse">@drawable/indicator_check_mark_dark</item>
<item name="windowBackground">@drawable/screen_background_dark</item>
<item name="expandableListViewStyle">@style/Widget.ExpandableListView.White</item>
<item name="listViewStyle">@style/Widget.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.ProgressBar.Inverse</item>
<item name="progressBarStyleSmall">@style/Widget.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLarge">@style/Widget.ProgressBar.Large.Inverse</item>
<item name="textColorHint">@color/hint_foreground_light</item>
<item name="colorForegroundInverse">@color/bright_foreground_light_inverse</item>
<item name="listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator.White</item>
<item name="textColorTertiary">@color/tertiary_text_light</item>
<item name="textColorTertiaryInverse">@color/tertiary_text_dark</item>
<item name="listDivider">@drawable/divider_horizontal_bright</item>
<item name="progressBarStyleInverse">@style/Widget.ProgressBar</item>
<item name="progressBarStyleSmallInverse">@style/Widget.ProgressBar.Small</item>
<item name="progressBarStyleLargeInverse">@style/Widget.ProgressBar.Large</item>
<item name="textColorPrimaryInverseDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="gestureOverlayViewStyle">@style/Widget.GestureOverlayView.White</item>
</style>
now recompile and push
just at the end the meaning of this guide is in styles.xml
dark means light
and light means dark
i hope i helped you just if you like my work pls hit thanks button
see you around :highfive: :victory:
XDA:DevDB Information
turning on light/black theme , Theme for all devices (see above for details)
Contributors
apk5656
Version Information
Status: Testing
Created 2016-04-25
Last Updated 2016-04-27

Categories

Resources