[Guide] Transparent background - framework-res.apk Contacts.apk [ICS] - Android Themes

This is a simply method to set a transparent background on framework-dependent apks and Contacts.apk. Tested on my GS2 and TF201.
1. Using Photoshop or similar create a trasparent image (% as you wish) and save it as .png. If you insert a texture or image, use your device resolution for better results. Make two copies and rename its as "background_holo_dark.png" and "background_dial_holo_dark.png"
2. Decompile framework-res.apk. You can follow this great guide
3. Browse to res/values and open styles.xml. Search code for "<style name="Theme.Holo" parent="@style/Theme">"
4. On it, search this line "<item name="windowShowWallpaper">false</item>" (using Komodo is line 1006) and replace values with true. Save and close.
5. Browse to res/drawable-nodpi and replace existing background_holo_dark.png with your image
6. Recompile framework-res. You may refer to guide posted above
7. Using winrar or similar browse into Contacs.apk to res/drawable-nodpi and replace existing background_dial_holo_dark.png with your image (simply drag&drop, be careful to set compression to Store)
8. Replace framework-res and Contacts.apk on your device (Root explorer, adb, flash through recovery). Personally I also clear cache and dalvik cache
9. Enjoy your modded apks!
Remeber: always perform backup before replace any system file! Also, I'm no responsible for any problems that may occure on your phone

Hi dude!
Can you help how to do this with a stock ROM (Eclair - XPERIA X8) ?

Sorry but I have always used ICS on my devices, no experience about Eclair.
If Eclair have a framework-res.apk send it to me, I can try to help you.
Bye!
bobgeneric said:
Hi dude!
Can you help how to do this with a stock ROM (Eclair - XPERIA X8) ?
Click to expand...
Click to collapse

bobgeneric said:
Hi dude!
Can you help how to do this with a stock ROM (Eclair - XPERIA X8) ?
Click to expand...
Click to collapse
WTH. 2.1 man that suxxxs I believe its time for an upgrade

This is not the correct method. What you have essentially done is changed Theme.Holo to Theme.Holo.Wallpaper, but in an inefficient way and in a way that affects all its derivative themes, which is most themes. If you want the transparent background effect, you should use Theme.Holo.Wallpaper, as that's what it's designed for. It takes the parent theme of Theme.Holo and adds the following overriding attributes:
Code:
<!-- Default holographic (dark) for windows that want to have the user's selected wallpaper appear behind them. -->
<style name="Theme.Holo.Wallpaper">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowShowWallpaper">true</item>
</style>
Also, for Contacts.apk, there's some private java action that's used to build it that makes it a ***** to theme. Currently, in order to do any xml edits, and still have a working apk, you have to build Contacts.apk from source. To my knowledge, it's the only system app that requires you to do that. I've been working on that recently, actually. If you want to check it out, I have a thread here:
http://forum.xda-developers.com/showthread.php?t=1737161
I have a few other mods and stuff in there but there's also a github link there in the OP if you want to see all of the edits I made to the Contacts.apk.

m4570d0n said:
This is not the correct method. What you have essentially done is changed Theme.Holo to Theme.Holo.Wallpaper, but in an inefficient way and in a way that affects all its derivative themes, which is most themes. If you want the transparent background effect, you should use Theme.Holo.Wallpaper, as that's what it's designed for. It takes the parent theme of Theme.Holo and adds the following overriding attributes:
Code:
<!-- Default holographic (dark) for windows that want to have the user's selected wallpaper appear behind them. -->
<style name="Theme.Holo.Wallpaper">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowShowWallpaper">true</item>
</style>
Also, for Contacts.apk, there's some private java action that's used to build it that makes it a ***** to theme. Currently, in order to do any xml edits, and still have a working apk, you have to build Contacts.apk from source. To my knowledge, it's the only system app that requires you to do that. I've been working on that recently, actually. If you want to check it out, I have a thread here:
http://forum.xda-developers.com/showthread.php?t=1737161
I have a few other mods and stuff in there but there's also a github link there in the OP if you want to see all of the edits I made to the Contacts.apk.
Click to expand...
Click to collapse
This is my Styles.xml. I'm editing my framework-res.apk with Virtuous Ten Studio
Can you help to change my background and to make it transparent
Thanks you so much.
P.S. It is a stock ROM Eclair - XPERIA X8
Code:
<style name="Theme.Wallpaper" parent="@style/Theme">
<item name="windowBackground">@color/transparent</item>
<item name="windowShowWallpaper">true</item>
<item name="colorBackgroundCacheHint">@null</item>
</style>
<style name="Theme.Wallpaper.NoTitleBar" parent="@style/Theme.Wallpaper">
<item name="windowNoTitle">true</item>
</style>
<style name="Theme.Wallpaper.NoTitleBar.Fullscreen" parent="@style/Theme.Wallpaper.NoTitleBar">
<item name="windowContentOverlay">@null</item>
<item name="windowFullscreen">true</item>
</style>
<style name="Theme.WallpaperSettings" parent="@style/Theme">
<item name="windowBackground">@drawable/screen_background_dark_transparent</item>
<item name="windowIsTranslucent">true</item>
<item name="windowAnimationStyle">@style/Animation.Translucent</item>
<item name="colorBackgroundCacheHint">@null</item>
</style>
<style name="Theme.Light.WallpaperSettings" parent="@style/Theme.Light">
<item name="windowBackground">@drawable/screen_background_light_transparent</item>
<item name="windowIsTranslucent">true</item>
<item name="windowAnimationStyle">@style/Animation.Translucent</item>
<item name="colorBackgroundCacheHint">@null</item>
</style>
Zoidroid said:
Sorry but I have always used ICS on my devices, no experience about Eclair.
If Eclair have a framework-res.apk send it to me, I can try to help you.
Bye!
Click to expand...
Click to collapse
My framework-res attached

bobgeneric said:
My framework-res attached
Click to expand...
Click to collapse
I've made this 2 versions on framework-res basing on my experience in ICS, not sure if will work.
Make a nandroid backup, clear cache and dalvik cache and flash attached files. Try first with version1 and check result, if it don't make transparency (for example in android settings menu) try with version2.
Link: version1 version2

Zoidroid said:
I've made this 2 versions on framework-res basing on my experience in ICS, not sure if will work.
Make a nandroid backup, clear cache and dalvik cache and flash attached files. Try first with version1 and check result, if it don't make transparency (for example in android settings menu) try with version2.
Link: version1 version2
Click to expand...
Click to collapse
Thank you so much!!
But don't work :crying:
Code:
E: Error in /sdcard/version.zip
(status 0)
Well, can you explain what did you?

bobgeneric said:
Thank you so much!!
But don't work :crying:
Code:
E: Error in /sdcard/version.zip
(status 0)
Well, can you explain what did you?
Click to expand...
Click to collapse
This appear as error in flashable zip, perhaps the location of framework-res on Eclair is different from what I have indicate in the zip.
Open in and extract the framework.res.apk from system/framework and replace the original in your phone (make your own flashable zip, use adb, ...).
When I will have a free cuple of time I will report the code line I have changed.
Bye!

Zoidroid said:
This appear as error in flashable zip, perhaps the location of framework-res on Eclair is different from what I have indicate in the zip.
Open in and extract the framework.res.apk from system/framework and replace the original in your phone (make your own flashable zip, use adb, ...).
When I will have a free cuple of time I will report the code line I have changed.
Bye!
Click to expand...
Click to collapse
:crying: dude... don't work the system rebooting.
Well, better update.
Thank you so much, pal!

Related

[Q] need to tamper with the values ​​as I do that help me

Hello, I need to change the color of some letters in the System Tray,
know where I want to change the values, Every time I decompile the apk with apktool, after recompiling the framework-res does not work anymore
need to leave it
I want to change the Values ​​in framework-res
want to change the styles.xml
<style name="TextAppearance.StatusBar.EventContent" parent="@style/TextAppearance.StatusBar">
<item name="textColor">#ffffffff</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">16.0sp</item>
<item name="textStyle">bold</item>
<item name="textColor">?textColorPrimary</item>
please help me what should I do ?????
please help me!!!
sorry my bad english
thanks
I think (for system files) you need to unzip your recomplied apk & copy META-INF and AndroidManifest.xml from original apk, zip it back up using a "store" setting as the compression level.
HTH
What level of compression should I use?
thanks for answering
Store setting means zero compression I believe.
Sent from my Desire HD using XDA Premium App

[guide][mod]Transparency for froyo, gingerbread, For all.....

I have searched for transparency mod all over.... but couldn't find it.... decided to make it my self..... tried hard and come up with this when i was trying.......
Its simple work in almost all android versions..... this make almost all apps like root explorer, settings, music etc apps transparent
make backup before try this....!!!!
U need::::
* stock framework-res.apk
* apk manager or any other
* text editer like notepad++
* 7zip
* patience and GK
steps:::
decompile framework, in decompiled framework folder> res folder> values > styles.xml open it via notepad++ styles.xml is the key file, it control all apps layout and look.....
* in styles search for <style name="Theme"> this is the main theme layout... all app uses this.....
* under <style name="Theme"> search for <item name="colorBackground">@color/background_dark</item> now change this to <item name="colorBackground">@color/transparent</item> we are calling transparent color instead of dark which is inbuilt defined in color.xml in values folder.....
* now main part add <item name="windowIsTranslucent">true</item> in theme... means after <item name="colorBackground">@color/transparent</item>......... this line makes all app apps to be transparent....
Next there are two methods..........
first method :::
now make a transparent image save it as png file....... make sure it has correct resolution..... dont make full transparent it looks odd.....
save it and past in draweble mdpi or hdpi which ur device support..
now in styles.xml look for <item name="windowBackground">@drawable/screen_background_dark</item> below main theme....
change this to <item name="windowBackground">@drawable/"your image name"</item> add ur image name without ".....
save and close....
------OR-------
second method ::::
in styles.xml look for <item name="windowBackground">@drawable/screen_background_dark</item> below main theme....
change this to <item name="windowBackground">#80ffffff</item> or any other color hex code first two digits control transparency.....
save and close....
compile framework delete resources file in keep folder.... open stock framework (unedited) with 7zip,, amd open edited framework with 7zip...
drag and drop resources file and res folder from edited to unedited framework......
thets it... make flashable zip or adb push.........
ask me if u hav .......
Hit thanks if i helped U....... its free of cost......
Guys try this leav cmmnt if u face any prblm....
don't forgot hit thanx....
How to make transparent image?
Edward Cullen
Open a new file in adobe a dialog box will appear mak sure window background transparent selected add any image u want in this (copy past ) at da right side of da adobe window ther iz list of layers double click on image u pasted.... adjest opacity as u wish.... and save it as .png file..
don't forgot hit thanx....
akash akya said:
Open a new file in adobe a dialog box will appear mak sure window background transparent selected add any image u want in this (copy past ) at da right side of da adobe window ther iz list of layers double click on image u pasted.... adjest opacity as u wish.... and save it as .png file..
don't forgot hit thanx....
Click to expand...
Click to collapse
I will try and then tell you. But i have seen that most people make setting transparent and from there wallpaper is seen.
Edward Cullen
Yup this iz new method....
don't forgot hit thanx....
Using systemUI is much more easier
But nice one
Envoyé par mon LG-P500 chargée avec CM9
What about froyo
DJoptimus-One said:
Using systemUI is much more easier
But nice one
Envoyé par mon LG-P500 chargée avec CM9
Click to expand...
Click to collapse
Thnx ....... But Froyo doesn't have systemUI.apk............ so its good for froyo users...
akash akya said:
Yup this iz new method....
don't forgot hit thanx....
Click to expand...
Click to collapse
By this method also wallpaper will be seen?
Edward Cullen
akash akya said:
Thnx ....... But Froyo doesn't have systemUI.apk............ so its good for froyo users...
Click to expand...
Click to collapse
Well, i must say, not just froyo but i was just consulted by a member owning a SE device and this guide shall work on ICS too
Envoyé par mon LG-P500 chargée avec CM9
Avilove.Cullen said:
By this method also wallpaper will be seen?
Edward Cullen
Click to expand...
Click to collapse
Ya.... u can see background live wallpapers, dock... all.... if ter iz any app behind this it too visible.....
don't forgot hit thanx....
Hello you !
I want to do it for my MIUI I select any file to be able to do as you guide:fingers-crossed:
two option??
1 framwork fres.apk (of stock miui)
2 theme for Miui
pls help me
le_manhpro said:
Hello you !
I want to do it for my MIUI I select any file to be able to do as you guide:fingers-crossed:
two option??
1 framwork fres.apk (of stock miui)
2 theme for Miui
pls help me
Click to expand...
Click to collapse
U must use stock framework.apk ................. u can also do with theme but some time apktool gives plenty of error with thems.......... use stock framework for error free result........... report me after it works...
akash akya said:
U must use stock framework.apk ................. u can also do with theme but some time apktool gives plenty of error with thems.......... use stock framework for error free result........... report me after it works...
Click to expand...
Click to collapse
oke I will try, and feedback if it works or not tks again:victory:
I can't find this line in styles
look for now in styles.xml <item name="windowBackground"> ​​@ drawable / screen_background_dark </ item> below the main theme ....
change this to <item name="windowBackground"> ​​@ drawable / "your image name" </ item> add ur image name without ".....
Save and close ....
i have add file framework-res.apk
http://www.mediafire.com/?jp4h3jl1n01nehs
you can help me, thanks a lot
le_manhpro said:
I can't find this line in styles
look for now in styles.xml <item name="windowBackground"> ​​@ drawable / screen_background_dark </ item> below the main theme ....
change this to <item name="windowBackground"> ​​@ drawable / "your image name" </ item> add ur image name without ".....
Save and close ....
i have add file framework-res.apk
http://www.mediafire.com/?jp4h3jl1n01nehs
you can help me, thanks a lot
Click to expand...
Click to collapse
Hey search for window background only below theme.... ignore what evr may @draweble/blabla...... try if not works... then i ll c in framework afterwords...
Sent from my Micromax A60 using xda premium
Solved
le_manhpro said:
I can't find this line in styles
look for now in styles.xml <item name="windowBackground"> ​​@ drawable / screen_background_dark </ item> below the main theme ....
change this to <item name="windowBackground"> ​​@ drawable / "your image name" </ item> add ur image name without ".....
Save and close ....
i have add file framework-res.apk
http://www.mediafire.com/?jp4h3jl1n01nehs
you can help me, thanks a lot
Click to expand...
Click to collapse
Hey just decompiled ur framework......... in ur styles u have <item name="windowBackground">@color/mi_screen_background_dark</item>
No problem.......... change this to <item name="windowBackground">@drawable/"ur png image file name"</item> ...............
it must work........ try.... ask ur prblm if u hav.....
What is this Froyo you speak of? Is that what they use on the Motorola StarTac?
By the way, I'm not sure what it is you're trying to make transparent, but there's literally endless amounts of info, threads, apps, and themes out there for this for stock Gingerbread/ICS and any flavor of AOSP/CM9/AOKP/every other ROM out there.
All the info you need though is in styles.xml in framework-res.apk
A better method for transparent apps is to use a style with a parent style of Theme.Holo.Wallaper, and all of the derivatives of that style. It sets the background to your current wallpaper. You can also specify within the style the something like this:
Code:
<style name="DialtactsTheme" parent="@android:style/Theme.Holo.Wallpaper">
<item name="android:windowBackground">@drawable/semi_transparent_bg</item>
Then add a line in drawables.xml that says:
Code:
<item type="drawable" name="semi_transparent_bg">#60000000</item>
In this way, you have the transparent background but you can tint it so that it is a little darker, which makes it easier to theme for both light and dark wallapers/themes, adjusting the alpha value as you might need.
Also, there are many apps that use the image in framework-res at /res/drawable-nodpi/background_holo_dark.png as the background for the app. Changing that one image will change the background for apps like Titanium Backup, Root Explorer, Settings, etc.
.....But seriously, this information is literally everywhere already and it has been for quite some time.
m4570d0n said:
What is this Froyo you speak of? Is that what they use on the Motorola StarTac?
By the way, I'm not sure what it is you're trying to make transparent, but there's literally endless amounts of info, threads, apps, and themes out there for this for stock Gingerbread/ICS and any flavor of AOSP/CM9/AOKP/every other ROM out there.
All the info you need though is in styles.xml in framework-res.apk
A better method for transparent apps is to use a style with a parent style of Theme.Holo.Wallaper, and all of the derivatives of that style. It sets the background to your current wallpaper. You can also specify within the style the something like this:
Code:
<style name="DialtactsTheme" parent="@android:style/Theme.Holo.Wallpaper">
<item name="android:windowBackground">@drawable/semi_transparent_bg</item>
Then add a line in drawables.xml that says:
Code:
<item type="drawable" name="semi_transparent_bg">#60000000</item>
In this way, you have the transparent background but you can tint it so that it is a little darker, which makes it easier to theme for both light and dark wallapers/themes, adjusting the alpha value as you might need.
Also, there are many apps that use the image in framework-res at /res/drawable-nodpi/background_holo_dark.png as the background for the app. Changing that one image will change the background for apps like Titanium Backup, Root Explorer, Settings, etc.
.....But seriously, this information is literally everywhere already and it has been for quite some time.
Click to expand...
Click to collapse
Hey i hav searching for long time.... but all of them requires systemui.apk.... wich is not in froyo roms.... and what u mentioned <style name="DialtactsTheme" parent="@android:style/Theme.Holo.Wallpaper"> this also not there in froyo rom...... while i am trying with styles i come up with this..... thought to share it........ i agree it will make many apks transparent...
Sent from my Micromax A60 using xda premium
when i have deleted resources in edited framework then how will i get it in edited framweork ??
i am not getting resources in edited framework after compiling

[Q] How to remove list dividers in CM7.2 Contacts.apk

Hello, guys.
I'm trying to remove (or colour black like the background) all list dividers, vertical and horizontal, in all 4 "screens" of the Contacts app (Phone, Call Log, Contacts, Favorites). I've decompiled Contacts.apk, looked through most if not all XML files in it, but couldn't find anything relevant. Can you please lend me a hand?
Details:
HTC Desire PVT-4;
CyanogenMod 7.2.0.1;
Stock Cyanogen Contacts app.
I've attached two images highlighting exactly what i want to remove and Cyanogen's Contacts.apk.
Thanks in advance,
Alex.
Any ideeas, guys?
well if you get a cm7 theme you can get rid of some
and try decompiling framework res, phone, and or systemui
There png so unzip framework /contacts and make them transparent bro fastest way
Then zip
It up and push to phone
Rw
R
R
Sent from my Xperia Neo using xda premium
@-DarkKnight-: I don't want to use themes because i like the stock theme. I have managed to change most of the things i didn't like about it by editing framework-res and some system APKs, but this divider thing is driving me nuts.
@kormatoes: I could change all 9.png list dividers to transparent (from framework-res), but that would mean they'd go away from everywhere, and that's not what i want. I just want them removed from the Contacts APK. There is indeed a 9.png divider in the Contacts APK, but when i make it transparent (i know how to properly edit 9.png files), nothing happens. That's why i need some advanced help.
In the first image is it not btn_dial_normal in drawable-hdpi-finger ?
Edit: Had a look through your apk but I don't have any experence of cm7 and I kinda got lost in layouts for the second image just try adding these to your 'DialtactsTheme' in styles
Code:
<style name="DialtactsTheme" parent="@android:style/Theme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:dividerHorizontal">@null</item>
<item name="android:dividerVertical">@null</item>
<item name="android:listDivider">@null</item>
</style>
Thanks, m1keyb. I'll try your suggestion and see if it works. I'll keep you posted.
Getting rid of the lines under the numbers on the dialer is btn_dial_normal.9.png in drawable-hdpi-finger, just open it in a file editor and erase it, save it and then put it in a zip and flash. I have attached a method I use and have set up. Just replace the system/app/Contacts.apk with yours without etracting it. When flashed it will erase your current contacts.apk on your phone and replace it with the one you put in the system/app folder on the zip. I use paint.net for my photo editing and haven't had any issues and notepad++ to edit docs when need be.
I forgot what the file name was to get the other line thing out but its in the zip, one of the little tiny ones im sure

[GUIDE][REF]Changing System Text Settings

Taking some time from theme to get all of this info out right now before I forget it. This is going to be a place to put system text edits and what they affect. Right now I only have a couple but will add to it as I go. As always feel free to add ones that you have found.
These mods were made by thebowers outside xda. I am sharing this with you
Click to expand...
Click to collapse
Things needed to accomplish these changes
Apk Manager
Click to expand...
Click to collapse
-
7-zip
Click to expand...
Click to collapse
Great tools for opening .apks and extracting them with out changing the extension.
framework-res.apk
Click to expand...
Click to collapse
from your phone (since it holds the system settings).
Getting started
Pull framework-res.apk from phone by using ADB or however you would like to do this.
Download and extract Apk Manager. I usually place this in the tools directory of the Android SDK. If you do this you need to set the environment path for the directory for aapt.exe of apktool.jar to work correctly.
Take the framework-res.apk and place it in the place-apk-here-for-modding folder withing the Apk Manager folder.
Click on Script.bat within the Apk Manager folder to open and run the tool.
Should ask you about clearing workspace and then something about finding ADB.Once you get passed those screens you should be at one that has number options.
For this walk through we are only concerned with the middle portion.
Now go to the Apk Manager folder and you should see an folder labelled "out". Open it to find your decompiled .apk
Go to the /res/values folder. Then go to a .xml file called styles.xml. Open this and any xml file that you decompile with notepad or notepad++
Select 9 and hit enter. It should tell you that it is decompiling the .apk. When it is done it will ask you to make a selection.
This is a big xml file which controls many aspects of the system. Don't worry I am not even going to try and explain things here. Just going to give you the areas I know and what to change.
Click to expand...
Click to collapse
Things within styles.xml that I know
First off is the text on buttons
Do a ctrl+f to bring up the find button.
Type widget.button and click find next. (hit find next 6 times)
You should now be at this portion of the .xml
Code:
<style name="Widget.Button" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmallInverse</item>
<item name="textColor" [user=403934]@Color[/user]/primary_text_light</item>
<item name="gravity">center</item>
<item name="background">@drawable/btn_default</item>
<item name="focusable">true</item>
<item name="clickable">true</item>
</style>
Where it says primary_text_light (black) change to primary_text_dark (white).
Also you could delete the whole @Color/primary_text_light and just put #ffff00ae as an example for the color code you desire.
If that is all you need save and look down for the completing instructions.
Next is the menu text (when you hit he soft key for menu)
Do ctrl + f and put in TextAppearance.Widget.IconMenu.Item and click find next.
You should now be at this area
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item>
</style>
Change textColorPrimaryInverse (black) to textColorPrimary (white and then black when pressed)
Also you could delete the whole ?textColorPrimary and just put #ffff00ae as an example for the color code you desire.
If that is all you need save and look down for the completing instructions.
Keyboard text (the actually text on the soft keyboard keys)
Do ctrl + f and put in Widget.KeyboardView and click find next twice
You should now be at this section
Code:
<style name="Widget.KeyboardView" parent="@style/Widget">
<item name="background">@drawable/keyboard_background</item>
<item name="shadowColor">#bb000000</item>
<item name="shadowRadius">2.75</item>
<item name="keyBackground">@drawable/btn_keyboard_key</item>
<item name="keyTextSize">22.0sp</item>
<item name="labelTextSize">14.0sp</item>
<item name="keyTextColor">#ffffffff</item>
<item name="keyPreviewLayout">@layout/keyboard_key_preview</item>
<item name="keyPreviewOffset">-12.0dip</item>
<item name="keyPreviewHeight">80.0dip</item>
<item name="verticalCorrection">-10.0dip</item>
<item name="popupLayout">@layout/keyboard_popup_keyboard</item>
</style>
Pretty simple, where it says keyTextColor, change that to whatever you want.
If you want to change the key text on the pop up or preview, that is located in /res/layout/keyboard_key_preview.
If that is all you need save and look down for the completing instructions.
Text highlight color
Do crtl + f and put (style name="TextAppearance") in the find box and click find next.
You should now be at this section.
Code:
<style name="TextAppearance">
<item name="textSize">16.0sp</item>
<item name="textStyle">normal</item>
<item name="textColor">?textColorPrimary</item>
<item name="textColorHighlight">#ffc0c0c0</item>
<item name="textColorHint">?textColorHint</item>
<item name="textColorLink">#ff5c5cff</item>
</style>
Just change the textColorHighlight to whatever color you desire.
If that is all you need save and look down for the completing instructions.
Edit Text (what shows when you type in any textfield like talk, facebook, twitter, and such)
Do crtl+F for Widget.EditText and hit find next twice.
You should now be at this area.
Code:
<style name="Widget.EditText" parent="@style/Widget">
<item name="textAppearance">?textAppearanceMediumInverse</item>
<item name="textColor" [user=403934]@Color[/user]/primary_text_light</item>
<item name="gravity">center_vertical</item>
<item name="background">@drawable/edit_text</item>
<item name="focusable">true</item>
<item name="focusableInTouchMode">true</item>
<item name="clickable">true</item>
</style>
Where is says primary_text_light, you can change it to primary_text_dark for white text. Otherwise just do this "textColor">#ffff0000< that code is for red. Just replace with what color you want.
If you are done save and continue to finishing instructions.
Lockscreen Text
This is located in the /res/layout folder as keyguard_screen_tab_unlock.xml and keyguard_screen_tab_unlock_land.xml.
To help out I have added a color values string to the text areas (they don't have them by default)
Grab the Lockscreen Text xmls.zip found at the bottom. Unzip
Open these files in a Hex editor like HxD.
Do a hex-string search of 08 00 00 1c. The first one is for a background color skip it.
The next eight are for the text on the screen. By default I have them set at FF FF FF FF for white.
Just remember in hex editing the color values are backwards. Save the files and add to your framework-res.apk.
I will add more later. Just wanted to get these out right now.
Completing the process
Once you are done with that file don't forget to save.
Go back to the Apk Manager grey command prompt window.
Do option 11 to compile the .apk. When that is done it will change from compiling .apk to asking you to make a decision.
Then do option 12 to sign the .apk. This is very important. Forgetting to do this will result in a boot loop.
Now go to place-apk-here-for-modding folder within the Apk Manager folder. There should now be a new file called repackaged-signed.apk . Move this file to the desktop or somewhere to rename. Rename to framework-res.apk.
You now have a new framework-res.apk with the edits you did. Either add images and what not that you want to it or go ahead and push to phone by using ADB, an update.zip, MM theme format, or move to sdcard and use Root Explorer.
If you are going to add images use 7-zip to open the .apk as an archive and navigate to the appropriate folder. I haven't tried it but you should be able to put the image file in the appropriate folder before doing option 11 to compile. Just keep in mind that if they are .9 images they will need the guides on them. Since the folders are decompiled images within them until compiled.
Enjoy your need settings. Again if you know of anything in this file or some other usefully system text edits in the framework-res.apk, let me know.
If you liked this thread Press thanks button and Rate this thread 5 stars and and pressTip US​
reserved...............
Link To Some Of my Work!​​
How to update Baseband
How to change Android's background
How to use AROMA Installer
How to Downgrade Baseband
Theming Guide for changing system color settings
Custom ROMs
Backstreet MOD(Karbonn A5)​​
Some Other Important Threads
Walton Primo Gets ICS!
[Karbonn][A5][A7][Walton Primo]Official ICS released
[PETITION]Spice to release kernel source|GPLViolation|
[PETITION]Karbonn to release kernel source|GPLViolation|​
Great bro (Y)
iHarkunwar said:
Great bro (Y)
Click to expand...
Click to collapse
now post my guides to your blog it will help many members and give a link to this thread also.
Re: [GUIDE]Theming Guide for changing system text settings
https://docs.google.com/file/d/0B-Fun5vx9M9xTzJYclJ0czVobTg/edit
Touchwiz add on for MMX JB
By mrmad
Credits
Smalldookie
Me
Sent from my Samsung GT-S9081 using xda app-developers app
How to edit lockscreen option, not the text, but options on swiping
Anami101 said:
How to edit lockscreen option, not the text, but options on swiping
Click to expand...
Click to collapse
for that you have to edit many xml's and .smalii files in framework-res.apk
can you add the petition to micromax to release kernel source to your signature too, so that we can get more signatures?
psychopac said:
can you add the petition to micromax to release kernel source to your signature too, so that we can get more signatures?
Click to expand...
Click to collapse
I can but that is not my work so i will put it seperately
thanks, that'd be great!
Re: [GUIDE]Theming Guide for changing system text settings
Nice guide thanks
收件人: [GUIDE]Theming Guide for changing system text settings
good man
Sent from my HTC X515d using xda premium
tzpm said:
good man
Sent from my HTC X515d using xda premium
Click to expand...
Click to collapse
Its time for updating the thread i found more things and will include in the thread soon
I really like all your guides but you never post credits to people from whom you have got this knowledge and that's really sad!
Do you know how to change the color of popup title?
iamareebjamal said:
I really like all your guides but you never post credits to people from whom you have got this knowledge and that's really sad!
Do you know how to change the color of popup title?
Click to expand...
Click to collapse
first of all this is my own work not a single word is copied
And I don't got you i gave credits to all people who deserves it
GuneetAtwal said:
first of all this is my own work not a single word is copied
And I don't got you i gave credits to all people who deserves it
Click to expand...
Click to collapse
Well, I can't find credits in all of the thread
And I didn't say you copied it
iamareebjamal said:
Well, I can't find credits in all of the thread
And I didn't say you copied it
Click to expand...
Click to collapse
I have given credits in my every Thread and i only credits those who really deserves or i don't credit them
Link me to any of my thread without any special thanks or credits ??
GuneetAtwal said:
I have given credits in my every Thread and i only credits those who really deserves or i don't credit them
Link me to any of my thread without any special thanks or credits ??
Click to expand...
Click to collapse
So may I think you learnt what is written in this thread all on your own?
Nabs Zains said:
So may I think you learnt what is written in this thread all on your own?
Click to expand...
Click to collapse
Yeah it is my hard work bro
Even most of my guides are based on simple topic which is easy but rare to find an answer for a Newbie thats why i made these guides but now as i am leaving XDA soon with the release of Best ROM i wont be making more guides which i had planned
Edit: When i was a noob no one was there to reply me i don't know why so with time i learnt everything about this green Creature (Android )

[GUIDE][How-To] Change the background of your android phone For JB(4.1/4.2)

HELLO EVERYONE !!!!! Earlier i was using ICS 4.0.4 phone So it was very easy to me and for everyone to change the background of our phone !!! but when i bought a jb 4.2 phone i dont know wat to do :crying::crying:
Then After searching and asking to Senior and Reco. Devs and Themers i figure out how to do it !!
I try to find guides on xda but dont find a working one !!
:good::good::good::good::good::good::good::good:
So here i am with my little and easy GUIDE !
You will need:
- apktool
- notepad++
- 7zip
- framework-res.apk from the ROM you're using
-Brain
-Knowledge of De-compiling and etc @@
1) Install framework-res.apk;
2) Decompile it;
3) Navigate to /framework-res/res/values/ and open styles.xml
HERE WE GO -
Search for:-
Code:
<item name="colorBackground">@color/background_dark</item>
and change it with:
Code:
<item name="colorBackground">@color/transparent</item>
STEP 2
Search Again -
Code:
<item name="windowBackground">@drawable/screen_background_selector_dark</item>
Change it to -
Code:
<item name="windowBackground">@drawable/yourbackgroundname</item>
4) Prepare a background (yourbackgroundname.png) and add it to framework-res/res/drawable-nodpi
NOTE;-- :good: your ""backgroundname.png "" can be replaced with your own name or any thing you want just write down your text in <item name="windowBackground">@drawable/hello</item> (FOR exp)
and place a image with name hello in no-dpi location !!!!
5) Recompile back and ... done
THANKS TO - EnricoD !
:good::good:
Enjoy !!!
:good:
DOnt forget to hit the like buttion if helped !!

Categories

Resources