[theme for all device] translucence's course !! - Android Themes

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.

Related

[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

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

How do you change the colours of spinner control

I am trying to do so via this method:
Code:
style="@style/SpinnerTextViewStyle"
And I have this in one of the style.xml files created by default when I created the project.
Code:
<style name="SpinnerTextViewStyle">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">#0000aa</item>
<item name="android:textSize">16dp</item>
<item name="android:background">#ffffff</item>
<item name="android:padding">5dp</item>
</style>
This
Code:
<item name="android:background">#ffffff</item>
seems to work in the textview part but
Code:
<item name="android:textColor">#0000aa</item>
is totally ignored.
There must be some way of doing this!

[GUIDE][HOW] Easy Preference Control

Hi all.. i'm back again for share guide about add preference into stock Settings.apk
This guide is work for JB 4.1+
Feature:
PreferenceScreen
SeekBarPreference
ColorPickerPreference
MyListPreference
SwitchPreference
CheckBoxPreference
MyEditTextPreference
FilePreference
and many more..
Requirement:
- Understanding about APK compile/decompile
- APKTool
- Notepad++ (PC)
How:
1. Decompile Settings.apk
2. Copy smali and res folder from guide
3. Open AndroidManifest.xml
Find:
Code:
<uses-permission android:name="android.permission.REBOOT"/>
Add below:
Code:
<uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />
Scroll to end of line, add this above </application>
Code:
<activity android:label="@string/zen_control_title" android:name="com.android.settings.bamzzz.ZenControl" />
4. Open res/xml/dashboard_categories.xml (Lollipop) or res/xml/settings_headers.xml (JB)
Add this below "<dashboard-category android:id="@id/system_section" ..." or what do you want
Lollipop:
Code:
<dashboard-tile android:icon="@drawable/ic_settings_zencontrol" android:id="@id/zen_control" android:title="@string/zen_control_title" android:fragment="com.android.settings.bamzzz.ZenControl" />
JB:
Code:
<header android:icon="@drawable/ic_settings_zencontrol" android:id="@id/zen_control" android:title="@string/zen_control_title" android:fragment="com.android.settings.bamzzz.ZenControl" />
5. Open res/values/attrs.xml and add this:
Code:
<attr name="colorPrimary" format="color" />
<attr name="colorPrimaryDark" format="color" />
<attr name="colorAccent" format="color" />
<declare-styleable name="ThumbnailListPreference">
<attr name="drawableArray" format="reference" />
<attr name="entryList" format="reference" />
<attr name="entryValuesList" format="reference" />
<attr name="entryDefault" format="string" />
</declare-styleable>
6. Open res/values/colors.xml and add this:
Code:
<color name="colorAccent">#ffff4081</color>
<color name="colorPrimary">#ff3f51b5</color>
<color name="colorPrimaryDark">#ff303f9f</color>
7. Open res/values/dimens.xml and add this:
Code:
<dimen name="button_size">30.0dip</dimen>
8. Open res/values/ids.xml and add this:
Code:
<item type="id" name="zen_control">false</item>
<item type="id" name="appIcon">false</item>
<item type="id" name="linearLayout">false</item>
<item type="id" name="appName">false</item>
<item type="id" name="appPackage">false</item>
<item type="id" name="imageView">false</item>
<item type="id" name="color_picker_view">false</item>
<item type="id" name="text_hex_wrapper">false</item>
<item type="id" name="hex_val">false</item>
<item type="id" name="old_color_panel">false</item>
<item type="id" name="new_color_panel">false</item>
<item type="id" name="fileSwitch">false</item>
<item type="id" name="searchApp">false</item>
<item type="id" name="appsList">false</item>
<item type="id" name="progressBar">false</item>
<item type="id" name="iconForApp">false</item>
<item type="id" name="seekBarPrefUnitsRight">false</item>
<item type="id" name="seekBarPrefValue">false</item>
<item type="id" name="seekBarPrefUnitsLeft">false</item>
<item type="id" name="seekBarPrefBarContainer">false</item>
<item type="id" name="seekBarPrefSeekBar">false</item>
<item type="id" name="thumbnailRadioButton">false</item>
<item type="id" name="thumbnailImage">false</item>
<item type="id" name="thumbnailText">false</item>
<item type="id" name="thumbnailListView">false</item>
<item type="id" name="thumbnailIcon">false</item>
9. Open res/values/strings.xml and add this:
Code:
<string name="zen_control_title">Zen Control™</string> <!-- Rename if do you want -->
<string name="ok">OK</string>
<string name="app_reboot_required_title">App Reboot Required</string>
<string name="app_reboot_required_message">%1$s reboot is required for the changes to take effect.\n\nReboot now?</string>
<string name="dialog_color_picker">Color Picker</string>
<string name="press_color_to_apply">Press on Color to apply</string>
10. Open smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
Find "0x1020018" and replace with public id from framework-res type="id" name="widget_frame"
11. Open smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
Find "0x1020010" and replace with public id from framework-res type="id" name="summary"
12. Open res/xml/zen_prefs.xml, add/edit your preference here...
13. Done
Attention: Don't rename smali and/or folder structure without my permission..!!!
Keep oprek. Salam bootloop.
Thanks to:
[email protected]
[email protected]
Guide by [email protected]
fb.me/bamz4ever
Reserved
Ask um,
java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to read from null array
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3019)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3050)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2425)
at android.app.ActivityThread.access$900(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5294)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
Check arrays.xml.. array null
missing 0x1020010 tutor no.11
bamzzz said:
11. Open smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
Find "0x1020010" and replace with public id from framework-res type="id" name="summary"
Click to expand...
Click to collapse
i cant find that tutor sir
please help
No undefined array sir ?
shining.surya said:
i cant find that tutor sir
please help
Click to expand...
Click to collapse
i am also not able to find
@bamzzz @venkat kamesh
added missed
Code:
<public type="id" name="widget_frame" id="0x7f0f02e1" />
to public.xml
and missed
Code:
<item type="id" name="widget_frame">false</item>
to ids.xml
recompiled settings.apk to get public id´s
decompiled again and wanted to change id´s in smali.
But there is no value 0x1020010 in smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
moonryder said:
@bamzzz @venkat kamesh
added missed
Code:
<public type="id" name="widget_frame" id="0x7f0f02e1" />
to public.xml
and missed
Code:
<item type="id" name="widget_frame">false</item>
to ids.xml
recompiled settings.apk to get public id´s
decompiled again and wanted to change id´s in smali.
But there is no value 0x1020010 in smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
Click to expand...
Click to collapse
Bro adding id was not a matter
In layout xml or any xml. Where id is defined
Just change @iD to @+id this will add the required id to ids.xml also creates public id
Coming to 0x10xxxxx these public ids will be with framework-res.apk.
Good luck bro
venkat kamesh said:
Bro adding id was not a matter
In layout xml or any xml. Where id is defined
Just change @iD to @+id this will add the required id to ids.xml also creates public id
Coming to 0x10xxxxx these public ids will be with framework-res.apk.
Good luck bro
Click to expand...
Click to collapse
hi bro,
thx for the tipp with the +id
I looked in the framework-res and saw that there has nothing to be changed in the smali cuz the id´s are the same.
But there is no value 0x1020010 in smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali - so i can´t check/change the id!
And without that value this mod did not work! (also the one from @venkat kamesh) - pity
moonryder said:
hi bro,
thx for the tipp with the +id
I looked in the framework-res and saw that there has nothing to be changed in the smali cuz the id´s are the same.
But there is no value 0x1020010 in smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali - so i can´t check/change the id!
And without that value this mod did not work! (also the one from @venkat kamesh) - pity
Click to expand...
Click to collapse
Haha this guide was not from me
I haven't tested it either bro
See @Bloodlvst solved this
Hope he may help you bro
venkat kamesh said:
Haha this guide was not from me
I haven't tested it either bro
See @Bloodlvst solved this
Hope he may help you bro
Click to expand...
Click to collapse
@moonryder - the ID shouldn't need changing. What's the error you get and what android version?
Bloodlvst said:
@moonryder - the ID shouldn't need changing. What's the error you get and what android version?
Click to expand...
Click to collapse
hi,
i will try to explain it the third time:
i followed the tut by bamzzz. All went fine until i wanted to change the values in "smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali" (look at step 11 of bamzzz´s tutorial).
--> there is NO value 0x1020010 so i could not change it (public id)
so i tried it without step 11, followed the tut of venkat kamesh to hide battery in statusbar (tutorial from here).
Compiling and flashing went fine, but it didn´t work.
pushing the button, the battery icon won´t disapper.
So i think the issue must be in the smali mentioned above.
i am on LP 5.1.1
moonryder said:
hi,
i will try to explain it the third time:
i followed the tut by bamzzz. All went fine until i wanted to change the values in "smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali" (look at step 11 of bamzzz´s tutorial).
--> there is NO value 0x1020010 so i could not change it (public id)
so i tried it without step 11, followed the tut of venkat kamesh to hide battery in statusbar (tutorial from here).
Compiling and flashing went fine, but it didn´t work.
pushing the button, the battery icon won´t disapper.
So i think the issue must be in the smali mentioned above.
Click to expand...
Click to collapse
Step 11 just had a typo for the filename. If you look at the Guide.txt in the zip file, it will give you the right file name. But in either case those values wouldn't affect if the battery will hide or not
moonryder said:
hi,
i will try to explain it the third time:
i followed the tut by bamzzz. All went fine until i wanted to change the values in "smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali" (look at step 11 of bamzzz´s tutorial).
--> there is NO value 0x1020010 so i could not change it (public id)
so i tried it without step 11, followed the tut of venkat kamesh to hide battery in statusbar (tutorial from here).
Compiling and flashing went fine, but it didn´t work.
pushing the button, the battery icon won´t disapper.
So i think the issue must be in the smali mentioned above.
i am on LP 5.1.1
Click to expand...
Click to collapse
why not a logcat
that show the problem
get a logcat bro
venkat kamesh said:
why not a logcat
that show the problem
get a logcat bro
Click to expand...
Click to collapse
there is no logcat to post cuz recompiling works without any error.
But the mod does not work
moonryder said:
there is no logcat to post cuz recompiling works without any error.
But the mod does not work
Click to expand...
Click to collapse
hmmm
i am not supposed you about build logcat
you should know more about logcat bro
look at this
http://forum.xda-developers.com/showthread.php?t=1726238
go on
get a logcat
that probably show the problem and then its easy to fix
venkat kamesh said:
hmmm
i am not supposed you about build logcat
you should know more about logcat bro
look at this
http://forum.xda-developers.com/showthread.php?t=1726238
go on
get a logcat
that probably show the problem and then its easy to fix
Click to expand...
Click to collapse
sorry bro,
i missunderstood.
log is attached
moonryder said:
sorry bro,
i missunderstood.
log is attached
Click to expand...
Click to collapse
Bro this is not exact log
When you create logcat
You should click on fc part
Example
Go to settings which you get fc
Start logcat. Open part of settings you get fc and after that fc. Stop log by unplug and send me bro
That shows what was wrong
venkat kamesh said:
Bro this is not exact log
When you create logcat
You should click on fc part
Example
Go to settings which you get fc
Start logcat. Open part of settings you get fc and after that fc. Stop log by unplug and send me bro
That shows what was wrong
Click to expand...
Click to collapse
i did it like you said

Categories

Resources