Related
Guys - this is driving me nuts. After exploring stock Android inside out with the Milestone, there is a new and great learning curve with Sense, which is fine. In any case after investigating it is pretty clear what to do, if I want to change htcdialer to a black background and in this case certainly white (or another bright) font colour for the dialer buttons. After decompiling and checking the layout folders everything directly aims to style.xml - so I edited the corresponding values:
<style name="text_style_dialer_button_number">
<item name="android:textSize">27.0sp</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:shadowColor">@color/color_255_255_255</item>
<item name="android:shadowDx">2.0</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">1.0</item>
</style>
<style name="text_style_dialer_button_alphabet">
<item name="android:textSize">14.0sp</item>
<item name="android:textColor">#ff777777</item>
<item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">42.0px</item>
</style>
<style name="text_style_dialer_button_zero_number">
<item name="android:textSize">27.0sp</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:layout_gravity">center</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:shadowColor">@color/color_255_255_255</item>
<item name="android:shadowDx">2.0</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">1.0</item>
Unforunately no success - I also tried several layout xml despite knowing it will not work, just to double check. I also looked into EVO threads (since there was nothing here) and found out, that this style.xml and my values are right (certainly knowing that HTC changed something for DHD).
I also checked htcframework - besides a few pngs which I certainly found and edited no corresponding xml. So the answer seems to be in the smali code.
Anyone else tried this and succeeded? Any help would be greatly appreciated - Thx
solved it myself - see Revolution theme thread
he_stheone64 said:
solved it myself - see Revolution theme thread
Click to expand...
Click to collapse
Would you mind sharing how you did it? I spent over an hour editing each PNG one by one to find out it doesnt work! Now that got me a bit pissed grrrrr
That is certainly not png related, you need to decompile the apk first and then need to edity styles.xml in values-hdpi folder.I was so used to AOSP (had a Milestone before, never had values-hdpi), that I started editing everything in values folder and with all the language value folders was not looking at the obvious...
Thanks. Last question, how would I go about making the buttons plain black, instead of having a sort of gradient around it/button around it? I'm trying to match my keyboard.
1. Use my themed htcdialer from Revolution Theme (which is already compiled for inverted use - credit is always nice, if you release it)
2. Make htc_pin_asset_rest.png in htcdialer 100% transparent
3. You should at least have a little glow or whatever effect for htc_pin_asset_pressed.png in order to have feedback for input
4. Make phone_keypad_background.png in com.htcresources.apk as dark as you like it
whaaa!!! almost a week looking at those files.... and indeed never looked between those language folders....H
Much appreciated and I will make sure to credit you if I release
can you install the dialer as an apk file? if you could please pass it over it would would go well with my screen setup at the moment
You only need to download the Revolution Theme and flash only the htcdialer (delete anything in the update.zip, which you don`t need -certainly not the Meta-INF...)
I`m having a very strange Problem - all system/apps and framework-res compile fine (why shouldn`t they...) - only with com.htc.resources.apk I have the same issue after trying it 20 times with different approaches - directly in apktool, apkmanager 4.9, transfering compiled resources to original htc framework, compiling with apkmanager 4.9, transfering Manifest and Meta-Inf to the compiled htc resources, basically all the bells and whistles...
The system boots and works fine, but after compiling I loose access to settings. Even if I decompile in a test run and CHANGE NOTHING and compile, same result.
Following warning comes from apktool, but build finishes and boots as mentioned:
aapt: warning: string 'htc_day' has no default translation in C:\apktool\com.htc
.resources-decoded\res; found: zh_HK
aapt: warning: string 'htc_hour' has no default translation in C:\apktool\com.ht
c.resources-decoded\res; found: zh_HK
aapt: warning: string 'htc_minute' has no default translation in C:\apktool\com.
htc.resources-decoded\res; found: zh_HK
aapt: warning: string 'htc_month' has no default translation in C:\apktool\com.h
tc.resources-decoded\res; found: zh_HK
aapt: warning: string 'htc_year' has no default translation in C:\apktool\com.ht
c.resources-decoded\res; found: zh_HK
I: Building apk file...
Usually if something`s wrong you get errors (no warnings) or system does not boot, but this here is really unique. It is clear that apktool is loosing some entries somewhere, which are necessary for settings to load, subsequently settings init fails due to these missing entries.
I even added the missing translations to strings.xml and it compiled again fine, same result. I don`t expect a solution here, since I reported that issue to brut, but I only need to know whether that`s an isolated problem on my PC or whether you guys are experiencing the same problem with the latest 2.2.1 com.htc.resources.apk
I'll try and compile the file tomorrow and see what I get, at the moment I've just decompiled the whole theme to take a look at its guts
Sent using my two thumbs.
It`s really a pity, since I added some cool new look to com.htc.resources and it looks great on the DHD, but not really nice with this settings bug...
Hmmm, still can't get the menu text to white or green...
changed it to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item>
and even to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">#ffffffff</item>
and to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">#ff777777</item>
Still no luck, and yes i have even modded it in values and values-hdpi
How's your progress on this he_stheone64???
he_stheone64 said:
It`s really a pity, since I added some cool new look to com.htc.resources and it looks great on the DHD, but not really nice with this settings bug...
Click to expand...
Click to collapse
which version of apktool r u using? 1.3.1 or 1.3.2?
kurniawan77 said:
which version of apktool r u using? 1.3.1 or 1.3.2?
Click to expand...
Click to collapse
Both - 1.31 AND 1.32.
kurniawan77 said:
Hmmm, still can't get the menu text to white or green...
changed it to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item>
and even to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">#ffffffff</item>
and to
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">#ff777777</item>
Still no luck, and yes i have even modded it in values and values-hdpi
How's your progress on this he_stheone64???
Click to expand...
Click to collapse
No problem - I managed to invert menu AND all popups plus color in notification bar. I used the popups and menu from Gingerbread for the tests and even black menu for bright and medium popup`s. That gives a little DarkEdge feeling... The problem here is, that it looks great but due to described issues I`m loosing access to settings, a behaviour I never experienced and I compiled thousands of apk`s...
Coming from AOSP or CM6 ROM`s like me, you initially are editing the wrong framework... these changes for menu, popup and even the simple statusbar have all to be done in values folder of com.htc.resources - BUT due to compilation issues I can`t release the outcome. There might still be other approaches, but com.htc.resources OVERWRITES all style edits in framework-res you`ve tried before. It is like some png`s like popup, where the changes have to be done in com.htc.resources and not in framework-res.
So my question still remains the same - if you decompile and compile com.htc.resources and push it back and boot - do you also have the same issues, that settings don`t start anymore (no FC`s - they just don`t init)? Just try this without changing ANYTHING, only decompile, compile and push back. This helps me to understand, whether I have an isolated problem or whether this is a general apktool issue with the latest htc resources on DHD (maybe also on Z).I tried it with apktool 1.31 and 1.32, both directly and with apkmanager 4.9.
he_stheone64 said:
No problem - I managed to invert menu AND all popups plus color in notification bar. I used the popups and menu from Gingerbread for the tests and even black menu for bright and medium popup`s. That gives a little DarkEdge feeling... The problem here is, that it looks great but due to described issues I`m loosing access to settings, a behaviour I never experienced and I compiled thousands of apk`s...
Coming from AOSP or CM6 ROM`s like me, you initially are editing the wrong framework... these changes for menu, popup and even the simple statusbar have all to be done in values folder of com.htc.resources - BUT due to compilation issues I can`t release the outcome. There might still be other approaches, but com.htc.resources OVERWRITES all style edits in framework-res you`ve tried before. It is like some png`s like popup, where the changes have to be done in com.htc.resources and not in framework-res.
So my question still remains the same - if you decompile and compile com.htc.resources and push it back and boot - do you also have the same issues, that settings don`t start anymore (no FC`s - they just don`t init)? Just try this without changing ANYTHING, only decompile, compile and push back. This helps me to understand, whether I have an isolated problem or whether this is a general apktool issue with the latest htc resources on DHD (maybe also on Z).I tried it with apktool 1.31 and 1.32, both directly and with apkmanager 4.9.
Click to expand...
Click to collapse
I'll give it a try to de- and compile com.htc.resources... sometimes it helps to run as administrator... don't know if it helps u.
nope getting same warnings
Code:
I: Building resources...
aapt: warning: string 'htc_day' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
aapt: warning: string 'htc_hour' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
aapt: warning: string 'htc_minute' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
aapt: warning: string 'htc_month' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
aapt: warning: string 'htc_year' has no default translation in C:\Users\HP DV7-4030ed\Desktop\Irwan\apk_manager_4.9\other\..\projects\com.htc.resources.apk\res; found: zh_HK
I: Building apk file...
i'll try renaming it to comhtcresources.apk.... don't know if it helps but we'll see tonight... i'm off to work now...
THIS THEME IS FOR MORE EXPERIENCED THEMERS ONLY!
Adding a Holo ActionBar to an app using Theme Chooser
Apps this is known not to work with:
WinAmp
Tapatalk
TubeMate
What does this do?
So you have an app that's made for Gingerbread, but you're using ICS or JB? Doesn't look as nice as it should does it?
Some of you might have seen my theme Holo Fixer, which automatically attempts to make those apps use Holo. In some cases, it works just fine. But it's not complete that way. If you wish to get more out of it, this guide will help you.
Screenshots of the outcome
A before and after screenshot:
{
"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"
}
Before
After
(This is the XDA RC blog app, which I'll be using in the guide)
Guide
1.) Start with your theme, make sure it's minSdkVersion is 14 or above and that you're building for ICS or above
2.) Pull the apk of your 'target app' from your phone/tablet, for example with the xda RC app:
Code:
adb pull /data/app/com.xda.rc.blog-1.apk
3.) Using apktool, decompile that app
Code:
sudo java -jar apktool.jar d -s com.xda.rc.blog-1.apk
(No need for source, so use the -s tag to skip it)
4.) Firstly open the AndroidManifest.xml file and look for a "android:theme" tag, within the main activity area. That should be the theme being used by default for the app. If it isn't there (if the app uses code to set the theme it's unlikely it will have the tag), proceed to the next steps anyway, you may still be in luck. However, if it refers to "@android:style", you're out of luck, sorry
5.) Open the res/values/styles.xml of the app
6.) Search for the name of the style that matches the main theme of the app we found earlier. If you couldn't find it, look for a generic style that's likely to be the main theme. In the xda RC app, the main theme styles are the following:
Code:
<style name="Theme_Light" parent="@*android:style/Theme.Light">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="Theme_Dark" parent="@*android:style/Theme.Black">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
If there are more than one, that's fine, continue.
7.) Copy the main theme styles to your theme's styles.xml, and rename them so they won't clash with other app's styles
Code:
<style name="Theme_Light_XDARC" parent="@*android:style/Theme.Light">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="Theme_Dark_XDARC" parent="@*android:style/Theme.Black">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
8.) Change the parent theme to be its Holo equivalent:
Code:
<style name="Theme_Light_XDARC" parent="@*android:style/Theme.Holo.Light">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="Theme_Dark_XDARC" parent="@*android:style/Theme.Holo">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
9.) If it has tags that hide the title, remove them:
Code:
<style name="Theme_Light_XDARC" parent="@*android:style/Theme.Holo.Light">
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="Theme_Dark_XDARC" parent="@*android:style/Theme.Holo">
<item name="android:windowContentOverlay">@null</item>
</style>
Leave the rest of the style in-tact though
10.) Make a new xml file in your theme's res/xml, using the package name, without the -1 or -number tags, and using _ rather than . For example, the xda RC app would be:
Code:
com_xda_rc_blog
11.) Add the default resource redirect tags:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resource-redirections>
</resource-redirections>
12.) Between the <resource-redirections> tags, add the following, replacing the "styleNameHere" with the original theme name, from the original app's styles.xml and the "modStyleNameHere" with the name of your theme name, from your theme's styles.xml
Code:
<item name="style/styleNameHere">@style/modStyleNameHere</item>
For example, the xda RC app's redirecion would be:
Code:
<item name="style/Theme_Light">@style/Theme_Light_XDARC</item>
Note: If there's more than one theme being modified, you must redirect all the styles you are redirecting.
The full xml of the xda RC app can be found here, with different style names (my naming system is weird :silly, and it also includes resource redirections, you don't need those yet.
13.) If you do not wish to customize your action bar at all, you are done here. If you do, proceed to post 2
Part 2: Customizing the action bar with colours, logos and more!
You must have completed the main guide to start
1.) Go back to your theme's styles.xml
2.) Add the following, as a new style:
Code:
<style name="ActionBar_XDARC" parent="@android:style/Widget.Holo.ActionBar">
</style>
Adding a logo to the action bar
Firstly, create a logo for the bar. It should be (up to) 72 pixels ^ and (up to) 300 pixels ->. The best idea is to use the app logo and customize it how you wish. I used the logo of the blog, and resized it.
Make sure the colour of the image will look OK on the action bar background
Basically, just use common sense really.
Now, add the following code to the style:
Code:
<item name="android:icon">@drawable/xda_rc_logo</item>
(Where xda_rc_logo is the name of the image you're using saved in the drawable folders of your theme)
Hiding the text in the action bar
This one is a bit of a hack, but can be done quite easily:
Firstly, add the following to your theme's styles.xml:
Code:
<style name="ActionBar_TitleTrans">
<item name="android:textColor">@android:color/transparent</item>
</style>
Now, add the following to the inside of your ActionBar style you created at the start of Part 2:
Code:
<item name="android:titleTextStyle">@style/ActionBar_TitleTrans</item>
(There's probably an easier way to do this, I'll edit the post if I find it)
Changing the background
Very simple, add the following to the inside of the style you added at the start of the part 2:
Code:
<item name="android:background">#0000FF</item>
Change the hex number to the one you want or use a colour in your theme's xml with @color/* or use an android one, such as @android:color/red
Finally, adding the action bar style to the app
Go back to the style you made in post 1, and add the following to it:
Code:
<item name="android:actionBarStyle">@style/ActionBar_APP</item>
(Where ActionBar_APP is the name you used at the start of post 2)
For example, the xda RC app would be:
Code:
<item name="android:actionBarStyle">@style/ActionBar_XDARC</item>
Now compile your theme and it should use your customized action bar. If you wish to move items out of the dropdown bar and onto your main actionbar, see post 3
Part 3: Moving items out of the dropdown bar onto the main actionbar
You must have completed the main guide to continue (you don't have to have completed part 2 though)WARNING: This part of the guide is quite complicated, and in most cases will not be needed. It's not compulsory to do this part, but it just looks better if you do.
1.) Start with your decompiled app, from part 1. Navigate to the res/menu folder and find the xml that you wish to move the options around on. In some cases there's only one xml, in most cases more. Open it/them
2.) Within the xml, find the items you wish to move the main action bar and add the following code to the end of them:
Code:
android:showAsAction="ifRoom"
The items that you are not moving can have their drawable tags removed, as they will not need them and will only cause problems later
If you want them to have icons
Add the android:icon tag, and use either a drawable or android:drawable
3.) Now you must add the ids of the options in that xml to your own, so the theme will compile.
First, open your theme's ids.xml
Now add the following to it:
Code:
<item type="id" name="idName">false</item>
Replace idName with the name of one of your ids from the menu file you had open
Do this for all the ids within the menu xmls.
4.) Save your menu file in a new folder in your theme, res/menu , with the normal name but with the app name after it, to prevent clashes
5.) Open your xml for redirecting that you had earlier
Add the following to it:
Code:
<item name="menu/menuName">@menu/menuName_app</item>
(Where the menuName is the app's original menu name and menuName_app is your theme's redirect for that file)
For example, for a menu file named "home_menu" and the app tag "XDARC", it would be:
Code:
<item name="menu/home_menu">@menu/home_menu_XDARC</item>
6.) Compile your theme, you are done
Might need another, just in case
Hey Guys I am back with my new guide
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here i'll show you How to theme your settings.apk to look like xperia .As you all know sony uses colorizable function for changing the themes
But AOSP framework Doesn't support colorizable function so i've modified the files from xperia rom to make it work on AOSP roms
Topics Covered :-
1.changing switch style to look like Xperia
2.changing only settings background
3.changing the settings header style
4.How to theme settings.apk to look like XZ2
5.changing the icons and more
Click to expand...
Click to collapse
Requirements:-
apktool 2.0.0b9
Notepad++
Knowledge about decompiling and recompiling
Time and Patience
Click to expand...
Click to collapse
Decompile your framework-res.apk
download the resources from attachment and merege it with yours
navigate to framework-res.apk/res/values and open styles.xml
find
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
OR
Code:
<style name="Widget.Holo.CompoundButton.Switch"
replace the style with this
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
<item name="textOn">@string/somc_btn_on</item>
<item name="textOff">@string/somc_btn_off</item>
<item name="thumb">@drawable/semc_switch_inner_holo_dark</item>
<item name="switchTextAppearance">@style/TextAppearance.DeviceDefault.Widget.Switch</item>
<item name="track">@drawable/semc_switch_track_holo_dark</item>
<item name="switchMinWidth">72.0dip</item>
<item name="switchPadding">4.0dip</item>
<item name="thumbTextPadding">@dimen/somc_switch_text_padding</item>
</style>
like this :
and add this at the end of styles.xml before </resources>
Code:
<style name="TextAppearance.DeviceDefault.Widget.Switch" parent="@style/TextAppearance.DeviceDefault.Small">
<item name="textSize">10.0dip</item>
<item name="typeface">sans</item>
<item name="textStyle">bold</item>
<item name="textColor">@color/semc_switch_text_color</item>
</style>
like this :
now open /res/values/strings.xml and add the specified lines at the end
if you don't want on/off text on the switch add these
like this :
Code:
<string name="somc_btn_on">I</string>
<string name="somc_btn_off">?</string>
or
if you want on/off text on the switch add these
like this :
Code:
<string name="somc_btn_on">ON</string>
<string name="somc_btn_off">OFF</string>
open /res/values/dimens.xml and add this at the end
Code:
<dimen name="somc_switch_text_padding">7.0dip</dimen>
thats it now recompile your framework-res
EXTENDED THEMING TO YOUR SETTINGS ON POST #5
Enjoy
IF YOU LIKE MY WORK DON'T FORGET TO HIT THANKS BUTTON
To theme your settings look like honami style
for xperia stlye switch follow the above guide
First Decompile your settings.apk and merge the resources from the attachment
open AndroidMainfeast.xml and change this line as shown
Code:
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher_settings" android:label="@string/settings_label" android:supportsRtl="true" android:taskAffinity="" [B][COLOR="Red"]android:theme="@style/Theme.Holo" [/COLOR][/B]android:uiOptions="splitActionBarWhenNarrow">
now open res/values/styles.xml and add this (if you alreadry have this style change it to look like mine)
Code:
<style name="Theme.Holo" [COLOR="Red"]parent="@*android:style/Theme.DeviceDefault.Light">[/COLOR]
<item name="android:textColor">#ff000000</item>
<item name="android:listSeparatorTextViewStyle">@style/ListSeparator</item> [COLOR="red"]#### add this line to apply new header style to settings and its activities ####
[/COLOR] [COLOR="Blue"]<item name="android:windowBackground">@drawable/[COLOR="Purple"]your_background[/COLOR]</item>[/COLOR] [COLOR="red"]#### add this line to apply custom background for settings and its activities ####[/COLOR]
</style>
if you want to add custom background to settings and its activities replace your_background with your image name
also add this at the end of styles.xml
Code:
<style name="ListSeparator" parent="@android:style/Widget.DeviceDefault.Light.TextView.ListSeparator">
<item name="android:textSize">14.0sp</item>
<item name="android:textStyle">normal</item>
[COLOR="blue"] <item name="android:textColor">[COLOR="Red"]#ffED2A2F[/COLOR]</item>[/COLOR] [COLOR="red"]####for changing header's text color ####
[/COLOR] <item name="android:gravity">center_vertical</item>
[COLOR="blue"] <item name="android:background">@drawable/[COLOR="red"]semc_list_section_divider_holo_light[/COLOR]</item>[/COLOR] [COLOR="red"]####for changing header background ####[/COLOR]
<item name="android:paddingLeft">8.0dip</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textAllCaps">true</item>
</style>
if you face any bugs like this
Now open
smali/com/android/settings/applications/ManageApplications$ApplicationsAdapter.smali
Search for
Code:
[B]getColorStateList[/B]
above that you will see this
Code:
[COLOR="red"]0x1060001 [/COLOR]
like this :
change it to
Code:
[COLOR="red"]0x106000[COLOR="Blue"]4[/COLOR][/COLOR]
This will fix the white text on white background problem in manage aplications tab items.
type 1 :
type 2 :
for type 1 merge the contents of type1.zip to your settings.apk
for type 2 merge the contents of type2.zip to your settings.apk
Finally Recompile your settings and flash it .
enjoy
nice work
Extended theming to your settings
In this guide I will show you how to change ram usage bar color and pager tabs color to your favourite color
1. for changing ram usage bar color
Decompile your settings.apk and Navigate to
Code:
\Settings.apk\smali\com\android\settings\applications\[COLOR="blue"][COLOR="blue"]LinearColorBar.smali[/COLOR][/COLOR]
now search for
HTML:
-0xff6634
replace --0xff6634 with your favourite color
To find smali equivalent of the color
download hex_to_smali_convertor.zip from attachment and open acc.hta type your favourite hex code and replace its smali equivalent thats it
like this :-
i.e In the above example replace -0xff6634 with -0xCC4A1B
2 .For changing the pager tab color
open settings.apk/res/values/colors.xml and add this at the end
Code:
[B]<color name="carbon_accent_dark">#[COLOR="Red"]ff9d4f93[/COLOR]</color>[/B]
replace ff9d4f93 with your favourite hex code( you can find easily hex equivalent in paint.net/photoshop )
recompile the settings
now again decompile the new settings.apk and navigate to
\Settings\smali\com\android\settings\applications\ManageApplications.smali
find
0x1060012
also open settings.apk/res/values/public.xml and find
Code:
<public type="color" name="carbon_accent_dark" id="[COLOR="red"]0x7f0a001a[/COLOR]" />
here replace 0x1060012 with 0x7f0a001a
thats it recompile everything and sign it and flash
Note :- the id 0x7f0a001a will be different for your rom
nice job
hi Sir
can u share na blur background? tnx sir
Hi pavan kr, I did follow your guide and try to modify my ROM as you said, but after I decompile your framework-res.apk successfully, I found there is no exist of framework-res.apk/res/values dircetory at all. My ROMis CM11 for HTC one X. I also check the other AOSP ROM, and again there is no framework-res.apk/res/values dircetory as well. How can that happen ? Thanks for advise.
I dont have the 0x1060012 in ManageApplications.smali
the_vanya1 said:
I dont have the 0x1060012 in ManageApplications.smali
Click to expand...
Click to collapse
If 0x1060012 is not present then search only for 0x10600 .
Always this must be a resource id linked with framework-res
chihliouma said:
Hi pavan kr, I did follow your guide and try to modify my ROM as you said, but after I decompile your framework-res.apk successfully, I found there is no exist of framework-res.apk/res/values dircetory at all. My ROMis CM11 for HTC one X. I also check the other AOSP ROM, and again there is no framework-res.apk/res/values dircetory as well. How can that happen ? Thanks for advise.
Click to expand...
Click to collapse
AFAIK once you decompile the apk there exist values folder if you have installed proper framework-res.apk ...
Use newer version of apktool 2.0+ and try..
Another metod
Settings\smali\com\android\settings\applications\ManageApplications.smali search
.local v4, tabs:Landroid/support/v4/view/PagerTabStrip;
- const v5, 0x1060012
and replace 0x1060012
pavan kr said:
AFAIK once you decompile the apk there exist values folder if you have installed proper framework-res.apk ...
Use newer version of apktool 2.0+ and try..
Click to expand...
Click to collapse
Thanks for the answer. I guess you are right that the software I use previously is not really decomiple the file. But after I have tried to build up the whole environment with JAVA JDK, and apktool from the ground, and start the decompile process, it jumps to me some error such as below :
"Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:........"
I tried to google but still not sure what's the issue there, can you advise me any website that I can learn to start the process correctly ? Thanks.
PS. atatched please find the framework-res.apk that Iried to decompile but fail. I hope the issue is not in the file itself.
PS2. I just tried to decompile some other apk file than this framework-res.apk, and it does decompile successfuly. Does that mean some native issue existing inside the framework-res.apk ???
chihliouma said:
Thanks for the answer. I guess you are right that the software I use previously is not really decomiple the file. But after I have tried to build up the whole environment with JAVA JDK, and apktool from the ground, and start the decompile process, it jumps to me some error such as below :
"Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:........"
I tried to google but still not sure what's the issue there, can you advise me any website that I can learn to start the process correctly ? Thanks.
PS. atatched please find the framework-res.apk that Iried to decompile but fail. I hope the issue is not in the file itself.
PS2. I just tried to decompile some other apk file than this framework-res.apk, and it does decompile successfuly. Does that mean some native issue existing inside the framework-res.apk ???
Click to expand...
Click to collapse
have a look at these guides it will help you
1 . http://forum.xda-developers.com/showthread.php?p=41491514
2. http://forum.xda-developers.com/showthread.php?t=1989533
pavan kr said:
have a look at these guides it will help you
1 . http://forum.xda-developers.com/showthread.php?p=41491514
2. http://forum.xda-developers.com/showthread.php?t=1989533
Click to expand...
Click to collapse
Thanks for the reply.In fact, I did google and tried some similar guide websites and I almost can confirm that my enrionement setup and apktool installation is good to go because it seems decompile other apks are quite ok, but only problem is to decoplie the attached framework-res.apk. If you have time, I am wondering if you can help to try to decompile in your current enerionment system to see if my assumption is correct. Thanks.
works on JB? 4.1.2 qualcomm
Nice job,,,thanks
when i try to recompile its show those error. see here http://forum.xda-developers.com/showthread.php?t=2964076
This tutorial does not work on my device. can anyone have a tutorial like this for Lenovo a328 (6582 MTK device with KK 4.4.2)
pavan kr said:
Hey Guys I am back with my new guide
Here i'll show you How to theme your settings.apk to look like xperia .As you all know sony uses colorizable function for changing the themes
But AOSP framework Doesn't support colorizable function so i've modified the files from xperia rom to make it work on AOSP roms
Topics Covered :-
Requirements:-
Decompile your framework-res.apk
download the resources from attachment and merege it with yours
navigate to framework-res.apk/res/values and open styles.xml
find
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
OR
Code:
<style name="Widget.Holo.CompoundButton.Switch"
replace the style with this
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
<item name="textOn">@string/somc_btn_on</item>
<item name="textOff">@string/somc_btn_off</item>
<item name="thumb">@drawable/semc_switch_inner_holo_dark</item>
<item name="switchTextAppearance">@style/TextAppearance.DeviceDefault.Widget.Switch</item>
<item name="track">@drawable/semc_switch_track_holo_dark</item>
<item name="switchMinWidth">72.0dip</item>
<item name="switchPadding">4.0dip</item>
<item name="thumbTextPadding">@dimen/somc_switch_text_padding</item>
</style>
like this :
and add this at the end of styles.xml before </resources>
Code:
<style name="TextAppearance.DeviceDefault.Widget.Switch" parent="@style/TextAppearance.DeviceDefault.Small">
<item name="textSize">10.0dip</item>
<item name="typeface">sans</item>
<item name="textStyle">bold</item>
<item name="textColor">@color/semc_switch_text_color</item>
</style>
like this :
now open /res/values/strings.xml and add the specified lines at the end
if you don't want on/off text on the switch add these
like this :
Code:
<string name="somc_btn_on">I</string>
<string name="somc_btn_off">?</string>
or
if you want on/off text on the switch add these
like this :
Code:
<string name="somc_btn_on">ON</string>
<string name="somc_btn_off">OFF</string>
open /res/values/dimens.xml and add this at the end
Code:
<dimen name="somc_switch_text_padding">7.0dip</dimen>
thats it now recompile your framework-res
EXTENDED THEMING TO YOUR SETTINGS ON POST #5
Enjoy
IF YOU LIKE MY WORK DON'T FORGET TO HIT THANKS BUTTON
Click to expand...
Click to collapse
Thank's bro.... This really helped me.:good:
Mate, if i dont ask much, can you please add a guide to make the settings ui like lollipop, white with green icons? Is that possible? I'm on MTK platform.
Xperia Z C6603 Lollipop 5.1.1(From Stock 10.7.A.0.222 UA) Not Deodexed, Keep Your arm folder SystemUI.odex inside ! Do Not Remove it !
SystemUI Dynamic Color For No Small apps Close All Button Position fix
Installation :Go to "\System\priv-app\SystemUI" Rename SystemUI.apk to SystemUI.apk.bak and Put the Downloaded SystemUI.apk
Go to "\System\app\SmallAppsLauncher" rename SmallAppsLauncher.apk to SmallAppsLauncher.apk.bak
REBOOT !
Full Dynamic :Dynamic_no_small_apps_Recents_apps_Navbar_Dynamic : https://mega.nz/#!dAEQjA6L!KtfGO7WYqOynsxX0CUm2c_1ba9IxPpzJQ5-B_3065LU
Other Variants :
No Dynamic Recents NavBar : Dynamic Sony apps NavBar & Status BarDynamic_no_small_apps_Recents_apps_Navbar_Dark : https://mega.nz/#!sFUD3QjR!yA3sJn9ON-ffpO4_uXfZxrDW9g3tOL_SVcA2Vhhqd7s
Dynamic_no_small_apps_Recents_apps_Navbar_Semi_Transparent : https://mega.nz/#!pY13QDwA!cl55jGTLtFpy-Xn2_WvzByXbE04JtFFFSGqREvYznv0
Dynamic_no_small_apps_Recents_apps_Navbar_Transparent : https://mega.nz/#!9Btm3Qjb!scA7mnPgnwWCz3msrFkz1G2Oniqe-VSGyUkmKWIvkYc
No Dynamic Recents Navbar : No Dynamic Sony apps NavBar Dynamic Sony apps Status BarNo_Dynamic_no_small_apps_Recents_apps_Navbar_Transparent : https://mega.nz/#!EV12VL7S!VnTpqIu08LEg39fMaYt4FeKTgoSEtnMC7dqH9k7vWOA
No_Dynamic_no_small_apps_Recents_apps_Navbar_Semi_Transparent : https://mega.nz/#!1YcywJZY!6BiQMMvDJOeyqF9pYcYZY7KMhus5QYM6YRFjL2mN07I
No_Dynamic_no_small_apps_Recents_apps_Navbar_Dark : https://mega.nz/#!BIsnQTqa!rvXO2K8zeN8bSb0_xd1uVX-iAFfcC_fKt8ClmKrPWZU
No Dynamic Navbar : No Dynamic Sony apps NavBar & Status BarNo_Dynamic_no_small_apps_Recents_apps_Navbar_Transparent_StatusBar_Dark : https://mega.nz/#!lJkmGRgJ!HmMfCPohg6QPS7B4NOk6y4r-rGAJULDhqcFZ8lGDTqU
No_Dynamic_no_small_apps_Recents_apps_Navbar_Dark_StatusBar_Dark : https://mega.nz/#!ZVdUUBxA!vh_SviXsm5WFHWMzoQ6BuzCGjl-qIyVwYq5NurcMZ6Q
Ok, it's working very well. :good: However, can you please make one varient without dynamic navbar as it only seems to work with sony apps.
Also, which theme are you using?
Thanks
I use Xperia™ Theme: Aqua Green : https://play.google.com/store/apps/details?id=com.sonymobile.themes.cover.aqua
Other No Dynamic Variants : on the 1rst Post.
Enjoy ! and Share your Pics ! on this post ! and Thank's
mastacut said:
I use Xperia™ Theme: Aqua Green : https://play.google.com/store/apps/details?id=com.sonymobile.themes.cover.aqua
Click to expand...
Click to collapse
Thanks. Can you please make a variant with just no SmallApps button position fix? Dynamic navbar is very distracting on some apps.
masteriori said:
Thanks. Can you please make a variant with just no SmallApps button position fix? Dynamic navbar is very distracting on some apps.
Click to expand...
Click to collapse
You can test the None Dymanic Variants go to the 1rst Post at the END of the Post.
mastacut said:
You can test the None Dymanic Variants go to the 1rst Post at the END of the Post.
Click to expand...
Click to collapse
Thank you for your efforts. :good:
For some reason, stock sony apps still showing dynamic navbar when I installed No_Dynamic_no_small_apps_Recents_apps_Navbar_Trans parent but Recents screen had transparent navbar.
masteriori said:
Thank you for your efforts. :good:
For some reason, stock sony apps still showing dynamic navbar when I installed No_Dynamic_no_small_apps_Recents_apps_Navbar_Trans parent but Recents screen had transparent navbar.
Click to expand...
Click to collapse
Wrong Uploaded files ! (Updated on the 1rst Post) ... NOW IT IS OK !
Update NavBar Transparent :
No_Dynamic_no_small_apps_Recents_apps_Navbar_Transparent : https://mega.nz/#!EV12VL7S!VnTpqIu08LEg39fMaYt4FeKTgoSEtnMC7dqH9k7vWOA
Update NavBar Semi Transparent :
No_Dynamic_no_small_apps_Recents_apps_Navbar_Semi_Transparent : https://mega.nz/#!1YcywJZY!6BiQMMvDJOeyqF9pYcYZY7KMhus5QYM6YRFjL2mN07I
Update NarBar Dark :
No_Dynamic_no_small_apps_Recents_apps_Navbar_Dark : https://mega.nz/#!BIsnQTqa!rvXO2K8zeN8bSb0_xd1uVX-iAFfcC_fKt8ClmKrPWZU
Enjoy !
@mastacut
Could you please upload the original SystemUI? It will be useful for those that want to revert back.
Thanks :good:
masteriori said:
@mastacut
Could you please upload the original SystemUI? It will be useful for those that want to revert back.
Thanks :good:
Click to expand...
Click to collapse
Sorry about that
Sorry about that
But can you please make it also for Xperia Z1 C6903?
If you want systemui.apk I'm Ready
Thank you so much
الفلسطيني said:
Sorry about that
But can you please make it also for Xperia Z1 C6903?
If you want systemui.apk I'm Ready
Thank you so much
Click to expand...
Click to collapse
Here is for C6903 Lollipop 5.1.1 !Not Deodexed!
for rooted-prerooted firmware.
and
Pack twin ! : Odex & Deodexed
Hello, I tried it on Existenz but it wasn't working, I tried to make it myself but I had trouble decompiling the SystemUI apk.
Could you please make it for Existenz because I really like dynamic navigation bar. Here I'm attaching its systemui, thanks a lot.
Diatomix98 said:
Hello, I tried it on Existenz but it wasn't working, I tried to make it myself but I had trouble decompiling the SystemUI apk.
Could you please make it for Existenz because I really like dynamic navigation bar. Here I'm attaching its systemui, thanks a lot.
Click to expand...
Click to collapse
Try your Deodexed Existenz SystemUI (Modified)
(updated : recents.xml, styles.xml, drawables.xml, colors.xml, dimens.xml)
or
Test my deodexed SystemUI
Tell me.
Device : Xperia Z C6603 Lollipop 5.1.1
Diatomix98 said:
Hello, I tried it on Existenz but it wasn't working, I tried to make it myself but I had trouble decompiling the SystemUI apk.
Could you please make it for Existenz because I really like dynamic navigation bar. Here I'm attaching its systemui, thanks a lot.
Click to expand...
Click to collapse
Quick Tutorial : For C6603 Lollipop 5.1.1
res\values\styles.xlm
Edit: line 23:
<item name="android:navigationBarColor">@android:color/transparent</item>
to
<item name="android:navigationBarColor">@android:color/somc_color_dark_primary_dark</item>
res\values\drawables.xml
Edit: lines 6,18,19,20,21,22:
<item type="drawable" name="navigation_bar_gradient_background_non_skinnable">@drawable/nav_background</item>
<item type="drawable" name="somc_navbar_background_dark">@color/system_bar_background_opaque</item>
<item type="drawable" name="somc_navbar_background_dark_land">@color/system_bar_background_opaque</item>
<item type="drawable" name="somc_navbar_background_light">@drawable/somc_navbar_background_dark</item>
<item type="drawable" name="somc_navbar_background_light_land">@drawable/somc_navbar_background_dark_land</item>
<item type="drawable" name="somc_navbar_background_translucent">@drawable/nav_background</item>
to
<item type="drawable" name="navigation_bar_gradient_background_non_skinnable">@drawable/status_background</item>
<item type="drawable" name="somc_navbar_background_dark">@android:color/somc_color_dark_primary_dark</item>
<item type="drawable" name="somc_navbar_background_dark_land">@android:color/somc_color_dark_primary_dark</item>
<item type="drawable" name="somc_navbar_background_light">@android:color/somc_color_dark_primary_light</item>
<item type="drawable" name="somc_navbar_background_light_land">@android:color/somc_color_dark_primary_light</item>
<item type="drawable" name="somc_navbar_background_translucent">@drawable/status_background</item>
Close all Button position:
Portrait mode:
res\values\dimens.xml
Edit: line 250
<dimen name="close_all_button_layout_margin_bottom">134.0dip</dimen>
to
<dimen name="close_all_button_layout_margin_bottom">64.0dip</dimen>
Landscape mode: make a copy of res\layout\layout\recents.xml to res\layout\layout-land\recents.xml
res\layout\layout-land\recents.xml
Edit line 9
<Button android:theme="@android:style/Theme.DeviceDefault" android:gravity="center" android:layout_gravity="end|bottom|center" android:id="@id/close_all_button" android:background="@drawable/somc_close_all_background" android:visibility="gone" android:layout_width="@dimen/close_all_button_size" android:layout_height="@dimen/close_all_button_size" android:layout_marginBottom="@dimen/close_all_button_layout_margin_bottom" android:layout_marginEnd="@dimen/close_all_button_layout_margin_end" android:elevation="8.0dip" />
to
<Button android:theme="@android:style/Theme.DeviceDefault" android:gravity="center" android:layout_gravity="end|bottom|center" android:id="@id/close_all_button" android:background="@drawable/somc_close_all_background" android:visibility="gone" android:layout_width="@dimen/close_all_button_size" android:layout_height="@dimen/close_all_button_size" android:layout_marginBottom="16.0dip" android:layout_marginEnd="64.0dip" android:elevation="8.0dip" />
Can you Upload a Stock .228 deodex System UI ?... all of the System UI in Deodexed roms have persistent close all button..so annoying...
Hello to everyone.
Material Recent for Gingerbread
Made by zhaozihanzzh(ME Failed Coder), Open source
Created 2018-07-24
Last updated 2018-08-10
Note: If your native language is Chinese, you can go to this thread.
Hello guys. I have been making this material recent for a while. The project is based on @tentenponce 's SwipeRecentApps and ZieIony's library MaterialRecents. And I used m0r0's code to fix some bugs. I am a noob, but after many days' work I finally managed to get the performance improved and be able to convert it into framework. I made a short video for this: https://mega.nz/#!JJUVyYpL!cHySc82VtXUZpKVJGdVSHq6bLzQ0VE6q4Do3AcXTXIo
Features:
- Show the latest 7 recent apps
- Click to launch the application, swipe the card to try ending a process and long press the card to open application settings
- Click the clear button to launch an activity which is used to end processes
To start with, you need:
- Decompile / Recompile experience
- A rooted Android 2.3 with a process management app (the same as SwipeRecentApps)
- To be able to run Apktool 1.5.2
Before doing this, make sure you have a backup and are able to unbrick your phone.
Attachments: https://mega.nz/#!FdlyGYyQ!qP6-BUWGeVhWMbnBaLO3A839hhyE69qGbiWKJREbYas
Steps:
1. Decompile framework-res.apk and unzip the res folder to your decompiled files. (If your phone is not MDPI, you can manually resize the clear icon and put it under the proper drawable-??dpi folder.)
2. Open res/values/ids.xml and add the following lines before :
Code:
<item type="id" name="materialrecents_recentContent">false</item>
<item type="id" name="materialrecents_recentTitle">false</item>
<item type="id" name="materialrecents_recentIcon">false</item>
<item type="id" name="mainlayout">false</item>
<item type="id" name="materialrecents_recentHeader">false</item>
<item type="id" name="taskman">false</item>
<item type="id" name="noapps">false</item>
<item type="id" name="recent_frame">false</item>
Note: if you have done tenten's SwipeRecentApps you will find some ids already exist and you shouldn't add them.
Then, open res/values/strings.xml and add the following line before :
Code:
<string name="kill_app">The process has already been tried to end.</string>
3.Recompile framework-res and decompile the generated apk file and open the decompiled res/values/public.xml.(You can sign the generated framework-res apk properly and then let the apk wait for a while) Search for the item name below and write down their names and values:
Left: type Right: name
"color" transparent (I think this ID is same in all android devices, so maybe we can ignore it)
"layout" recent_apps_dialog
"id" taskman
"id" noapps
"id" mainlayout
"string" no_recent_tasks
"id" recent_frame
"string" kill_app
"layout" material_recents_card
"id" materialrecents_recentTitle
"id" materialrecents_recentIcon
"id" materialrecents_recentHeader
"id" materialrecents_recentContent
4. You need to have NineOldAndroids in your framework jars. Maybe some other guides you have done already add these library smalis to your framework.jar or android.policy.jar, such as the "nineoldandroids" in Ripple Effects on Button or "tentwentyoldandroids" in SwipeRecentApps. Therefore, if you already have this library, then you don't need to add my smali/com/noas folder and you should use a uniform path and name.(For example, if your path is com/nineoldandroids, then you should replace all the "com/noas" in all the smali files in smali/com/android/ and smali/tk/ with "nineoldandroids". By the way, in order to prevent Apps from loading the system NineOldAndroids instead of loading it from their own dex, I suggest not using "com/nineoldandroids".) If your ROM doesn't have nineoldandroids, or you don't understand what I am saying, then decompile android.policy.jar and merge the smali/com/noas folder.
5.Decompile android.policy.jar (If you have decompiled this in the 4th step, you don't need to decompile it again) and backup all the smali files related to recentapps and delete them. Then merge smali/com/android folder and smali/tk folder to your smali. After that, open smali/com/android/internal/policy/impl/RecentApplicationsDialog.smali and replace all the id numbers (commented with "#") with your own numbers which you have written down before. Notice that you should remove the first "0" after "0x", for example, if your id is 0x01080388, you are supposed to add "0x1080388" to your smali file. Do the same operation to smali/tk/zielony/merecents/RecentsList.smali.
6. Open smali/com/android/internal/policy/impl/RecentApplicationsDialog$100000001.smal and replace "com.sec.android.app.controlpanel" with the package name of your task management app, and replace "com.sec.android.app.controlpanel.activity.JobManagerActivity" with the task management activity of your application.
7. Recompile android.policy.jar and sign correctly. Push the modified android.policy.jar and framework-res.apk into system.
Source code: https://github.com/MeCreationTeam/ME_MaterialRecent.
If you want to compile it from source and decompile it into system by yourself, make sure the code
Code:
window.setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
in onCreate method in RecentApplicationsDialog.java uncommented. I commented this line only for directly build apk and testing. And the class path in source code is different from my smali.
Note: If you face problem when using horizontal screen, try to change the value of paddingLeft and paddingRight in the RelativeLayout in res/layout-land/recent_apps_dialog.xml according to your screen.
In fact, I don't have much time, so I am sorry that if you have some questions, probably I cannot help you.
Credits:
- tenten
- ZieIony
- m0r0
And thanks to NineOldAndroids.
This project is born with the help of open source project, and hope this project can continue to help others.
Reserved.
Sent from my HUAWEI CHM-TL00H using XDA Labs
Hope this thread can help you.
Sent from my HUAWEI CHM-TL00H using XDA Labs
Good job
Do you still want to swipe to kill process? I managed to get swipe work in this recent dialog(I wrote the code myself so maybe some bugs). Check the updated OP to get the new feature.
Sent from my HUAWEI CHM-TL00H using XDA Labs
NB