Hello,
I want to change to text color of the popup-menu from black to white.
Here's the reason why:
{
"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 changed the background graphics from white to black. So the text has to get white.
I just can't find a clue what file to edit.
Would be great if anyone could give a hint.
Thanks in advance!
This should help: http://forum.xda-developers.com/showpost.php?p=8316984&postcount=2297
Thank you so much.
Helps me a lot!
Does this not work in the DX or something? I extracted my framework apk but dont have the value folder nor an styles.xml ??
sniffs said:
Does this not work in the DX or something? I extracted my framework apk but dont have the value folder nor an styles.xml ??
Click to expand...
Click to collapse
To get the values folder it isn't enough to just unzip the apk.
You have to decompile it with APKTool. Then change the xml and compile it back.
However, I got problems with the latest version of the tool. My phone's stuck in a boot loop when compiling with it. The former version 1.3.1 works fine.
This issue is described here.
Also, you have to copy the Manifest file and the META-INF folder from the original framework apk to the new compiled one.
Oh, and another thing.
If you have a menu where you can click on a button named "More", this is what you get:
To make this text become white you have to change
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"]textAppearanceLargeInverse[/COLOR]</item>
</style>
to
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"]textAppearanceLarge[/COLOR]</item>
</style>
I think.
Sorry guy,
but on this way i got the font in menu more not white.
Do you have any other idea to get the text in menu more white?
It doesn't work, if the textAppearanceLarge is black, too.
You can directly make it white via
Code:
<item name="itemTextAppearance">#ffffffff</item>
Thanks a lot Wallla, I've been trying to figure this out (expanded menu > white text) for a few weeks now!
so after doing that, how's your menu>settings>sound working...does it open?
i did this on my rom (cm 6.1 d/s) and menu is black with white text, expanded menus are black with white text, but certain things are force closing due to a layout error...
12-20 13:35:06.860 E/AndroidRuntime( 1015): FATAL EXCEPTION: main
12-20 13:35:06.860 E/AndroidRuntime( 1015): java.lang.RuntimeException: Binary XML file line #2: You must supply a layout_width attribute.
is the brunt of it
beautiful widgets wouldnt work either
sound, call settings, and some other assorted submenus are force closing for me
tnpapadakos said:
so after doing that, how's your menu>settings>sound working...does it open?
i did this on my rom (cm 6.1 d/s) and menu is black with white text, expanded menus are black with white text, but certain things are force closing due to a layout error...
12-20 13:35:06.860 E/AndroidRuntime( 1015): FATAL EXCEPTION: main
12-20 13:35:06.860 E/AndroidRuntime( 1015): java.lang.RuntimeException: Binary XML file line #2: You must supply a layout_width attribute.
is the brunt of it
beautiful widgets wouldnt work either
sound, call settings, and some other assorted submenus are force closing for me
Click to expand...
Click to collapse
Sounds like there's a syntax error in the file. You're sure you made no mistake?
I've no problems at all with the changes described in this thread.
wallla said:
Sounds like there's a syntax error in the file. You're sure you made no mistake?
I've no problems at all with the changes described in this thread.
Click to expand...
Click to collapse
hmmm, i'll check...i cut/paste'd the code on your OP so, if there is a mistake, its on you LOL (joking)
thanks, i'll check
You coppied... But you replaced the old one with it, right?
Just adding it at the bottom doesn't work.
However, I'm sure you already know that.
wallla said:
You coppied... But you replaced the old one with it, right?
Just adding it at the bottom doesn't work.
However, I'm sure you already know that.
Click to expand...
Click to collapse
absolutely
Im on a cm6.2 rom for the eris and i think im missing somthing or not doing somthing, i got the menu to work going into styles.xml and i changed
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
to
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">@color/bright_foreground_dark</item>
to get the text to show and than i changed
verticalDivider">@drawable/divider_vertical_bright
to
verticalDivider">@drawable/divider_vertical_dark
And that got the virtical divider to show. now it all looks great but widgets, widget settings, settings and anything like that fc's, so am i missing somthing? Ohh and im using apk manager
tnpapadakos said:
so after doing that, how's your menu>settings>sound working...does it open?
i did this on my rom (cm 6.1 d/s) and menu is black with white text, expanded menus are black with white text, but certain things are force closing due to a layout error...
12-20 13:35:06.860 E/AndroidRuntime( 1015): FATAL EXCEPTION: main
12-20 13:35:06.860 E/AndroidRuntime( 1015): java.lang.RuntimeException: Binary XML file line #2: You must supply a layout_width attribute.
Click to expand...
Click to collapse
Skyllos said:
Im on a cm6.2 rom for the eris and i think im missing somthing or not doing somthing, i got the menu to work going into styles.xml and i changed
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
to
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">@color/bright_foreground_dark</item>
to get the text to show and than i changed
verticalDivider">@drawable/divider_vertical_bright
to
verticalDivider">@drawable/divider_vertical_dark
And that got the virtical divider to show. now it all looks great but widgets, widget settings, settings and anything like that fc's, so am i missing somthing? Ohh and im using apk manager
Click to expand...
Click to collapse
Now, that you mention apkmanager...
What version of APKTool are you two using? (APKManager is also only using APKTool, in the inside).
Like I described in post #5: With the newest version of APKTool I also have problems. My device even didn't boot up any more.
Try to use version 1.3.1.
im using the vs you post a few pages back
Edit: ohh i didnt realize apk manager is using apktools, which version of ApkTools is in the Apk Manager folder?
Update: i changed ApkTool in the apk manager folder for version 1.3.1 and that created a bootloop
I'm trying to do this on a sense ROM a I had the menu background black at one time but had the same text problem I want to try and see if this will work but I can't for the life of me remember how I changed the menu background to black do you guys have any ideas? thanks in advance!
Skyllos said:
im using the vs you post a few pages back
Edit: ohh i didnt realize apk manager is using apktools, which version of ApkTools is in the Apk Manager folder?
Update: i changed ApkTool in the apk manager folder for version 1.3.1 and that created a bootloop
Click to expand...
Click to collapse
I never used apkmanager. But I could guess additionaly to building the apk, it also compresses the PNGs, zipaligns everything and signs it.
I think I read about some of that stuff doesn't go well with system-files.
So, in conclusion, I would advise you to make a build just with apktool. It's really easy to use.
Oh, and don't forget to copy/overwrite the Manifest file and the META-INF folder from the original framework apk to the new compiled one, as I already wrote in post #5.
ACD168 said:
I'm trying to do this on a sense ROM a I had the menu background black at one time but had the same text problem I want to try and see if this will work but I can't for the life of me remember how I changed the menu background to black do you guys have any ideas? thanks in advance!
Click to expand...
Click to collapse
It's a nine-patch-png file.
I just re-did it again with just apktool instead, And its still the same issue. It looks great menu works but trying to open settings up on anything FC's
Related
{
"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"
}
--==--
As far as I know, this is the first time this has been accomplished on Sense framework for Froyo. I spent a considerable amount of time getting this to work, so I hope everyone likes it. I attempted to make this a MetaMorph theme so it would be easy to apply to any ROM, but I did not have any success. Thus, I will release this with links to framework for different ROMs.
Thanks goes to koush and cyanogen and everyone else that put code into CM6. I started with code from CM6 so it's only fair to show my gratitude for the great dev work they do for this community.
WARNING: I am not responsible for any harm this may directly or indirectly do to your phone. It is always wise to do a backup before applying a mod of this magnitude.
NOTE: You must remove the HTC Lockscreen if you have not done so already. This can be done by running the code below. This mod may also undo some theming you may have done to your rom. After flashing this mod, DO NOT replace your framework-res.apk file with another one or you will end up with a boot loop. I suggest you pull the new one from this mod and theme it manually. Otherwise, run the revert script and then flash whatever theme you want.
Remove HTC lock screen:
Code:
adb shell
mv /system/app/HtcLockScreen.apk /system/app/HtcLockScreen.bak
Install DeskClock.apk:
Code:
adb remount
adb push DeskClock.apk /system/app
Requirements:
You must be using one of the supported ROMs.
Your ROM must be deodexed.
If you are using the HTC clock for your alarms, you will have to install the vanilla clock and use it's alarms instead.
If you have a request for support on another ROM, just ask. I may even put a tutorial together on how to mod your own framework.
Install Instructions:
Remove the HTC lock screen if necessary
Install the vanilla clock if necessary
Download the framework zip for the ROM you are running
Download either the Rotary_Music or Rotary_NoMusic zip
Flash both of the zips in recovery
Reboot
Profit
--==--
Thanks to everyone that has donated
Supported ROMs and Their Framework Zip:
SkyRaider Sense 3.x -- SkyRaider_Sense_Rotary.zip (Mirror)
SkyRaider Vanilla 3.x -- SkyRaider_Vanilla_Rotary.zip (Mirror)
Virtuous 2.6 or Stock OTA -- Virtuous_Rotary.zip (Mirror)
Frankenrom -- FrankenRom_Rotary.zip (Mirror)
Themes:
Smooth Sense 1.0 (framework only; use for stock ROM) -- Smooth_Sense_Rotary.zip (Mirror) -- Original Thread
INCredible REVOlution -- Manup456_REVOlution_1_2r1-INC-rotary.zip
INCredible REVOlution (framework only) -- INCredible_REVOlution_rotary_framework.zip
Theme based on this thread with fixes -- original thread
Fixed Gmail/Voice Search
Fixed emmc not mounting
Lock Screen Options:Sense UI
Rotary w/ Music Controls -- Rotary_Music.zip (Mirror)
Rotary w/ Music Controls & Menu Unlock -- Rotary_Music_MenuUnlock.zip (Mirror)
Rotary w/ No Controls -- Rotary_NoMusic.zip (Mirror)
Revert to Tab Unlock -- Revert.zip (Mirror)
CyanogenMod
Coming soon ...
Complete Roms with Lock Screen:
CyanogenMod 6.0.2 - TouchPro Mod -- cm-6.0.2-Inc-tp-mod.zip
Additional Resources:
Vanilla Desk Clock -- DeskClock.apk
HTC Lock Screen -- HtcLockScreen.apk
TUTORIAL: How to mod your own frameworkFor this mod to work with your framework, you must alter your framework-res.apk file. It requires only editing /res/values/ids.xml and /res/values/public.xml. You need to add lines to both. There are also a couple layouts you need to add to /res/layout. Keep in mind, this tutorial only applies to dinc Sense framework.
Disclaimer: This requires knowledge of some advanced Android tools. I will not explain how to install or use them in this tutorial. I will only outline on a high level what needs to be done.
REQUIRED RESOURCES:
apktool - http://code.google.com/p/android-apktool/
DIRECTIONS:
Decompile framework-res.apk
Make the changes outlined below
Recompile
Open the original apk and delete the /res folder and resources.arsc file
Open up the newly compiled apk and copy over the /res folder and resources.arsc file into the original apk
At this point, you can push it over to your phone for testing
REQUIRED CHANGES:For ids.xml, add the following:
Code:
<item type="id" name="musicControlPlay">false</item>
<item type="id" name="musicControlPause">false</item>
<item type="id" name="musicControlPrevious">false</item>
<item type="id" name="musicControlNext">false</item>
<item type="id" name="fill_parent">false</item>
<item type="id" name="rotary">false</item>
For public.xml, add the following:
Code:
<public type="id" name="musicControlPlay" id="0x0102021e" />
<public type="id" name="musicControlPause" id="0x0102021f" />
<public type="id" name="musicControlPrevious" id="0x01020220" />
<public type="id" name="musicControlNext" id="0x01020221" />
<public type="id" name="rotary" id="0x01020222" />
And ...
Code:
<public type="layout" name="keyguard_screen_rotary_unlock" id="0x01090076" />
<public type="layout" name="keyguard_screen_rotary_unlock_land" id="0x01090077" />
Last, add these two files to /res/layout:
keyguard_screen_rotary_unlock_land.xml
keyguard_screen_rotary_unlock.xml
As always, great work ihtfp69. Do the music controls always stay on screen even if there is no music playing? I'm assuming the controls only work for the default music program?
do i need to install vanilla clock if im using your SR 2.5.2 or SR 3.0?
Nice job ihtfp69. You've been doing good things for the Inc.
You rock......
Sent from my ADR6300 using XDA App
TheWhiteBandito said:
As always, great work ihtfp69. Do the music controls always stay on screen even if there is no music playing? I'm assuming the controls only work for the default music program?
Click to expand...
Click to collapse
They are always on. They will work with whatever your default player is. It works with HTC Music, MusicMod, the stock Android Music, etc ...
zeke1988 said:
do i need to install vanilla clock if im using your SR 2.5.2 or SR 3.0?
Click to expand...
Click to collapse
Only if you are using the Sense version as you likely do not have it installed. It is already included with SkyRaider Vanilla 3.x.
Awesome.
Will this overwrite existing customizations such as status bar mods?
OSully said:
Awesome.
Will this overwrite existing customizations such as status bar mods?
Click to expand...
Click to collapse
It will not undo some status bar mods (like the ones that remove icons from the status bar or change the color of your clock), but may undo some themes like custom battery graphics.
This mod can be applied to any framework, though. It just takes five minutes of work. Currently, I have only done three. I may post a tutorial later if there is interest.
ihtfp69 said:
It will not undo some status bar mods (like the ones that remove icons from the status bar or change the color of your clock), but may undo some themes like custom battery graphics.
This mod can be applied to any framework, though. It just takes five minutes of work. Currently, I have only done three. I may post a tutorial later if there is interest.
Click to expand...
Click to collapse
It did overwrite the Revolution theme on Virtuous 2.6 rom, and I tried overwriting it by reinstalling the theme, which caused a force close on boot up and a boot loop, lol.
Nandroid ftw.
Any theme that includes a framework-res.apk file will either have to be patched or re-applied to the framework in the second post. Just post a request or have the themer pm me. To avoid boot loops, flash the revert script before flashing another theme. It will put things back.
Nothing for CM6?
ihtfp69 said:
Any theme that includes a framework-res.apk file will either have to be patched or re-applied to the framework in the second post. Just post a request or have the themer pm me. To avoid boot loops, flash the revert script before flashing another theme. It will put things back.
Click to expand...
Click to collapse
I meant no disrespect, just throwing it out there for anyone was in my shoes.
Installed this happily on my SR Vanilla 3.0 RC2! It is delightful.
However, what wasn't so delightful was that it removed my black notification bar with circle battery and replaced it with the white vanilla.
"What the heck, I did not authorize this" I say to myself.
I try to reinstall the black notification bar from rom manager and... boot loops
Color me strange but I prefer the black notification bar to the rotary lockscreen with music controls. I'm all about aesthetics!
Good thing I heeded the warnings and made a backup before install
Nice!!
Thanks ihtfp69 !!
Div033 said:
"What the heck, I did not authorize this" I say to myself.
Click to expand...
Click to collapse
lmao!
10char
Blue Theme
For those that might already have a blue theme for SkyRaider 3.1 RC3 I have ported the blue theme over to the new Rotary Framework that ihtfp69 just released. Just install it via Rom manager or recovery. Also make sure that you are running a blue theme or you will just have only parts of the theme blue. I also ported a blue them over to this rom so you can check it out in the theme section. I take no credit for anything that I did. All I did was copy and paste and rename some files. As always great work ihtfp69
File download -----> http://www.mediafire.com/?pbzs4ddjjvwm1cm
Music controls
So I cannot get the music controls to work. I am just useing the default HTC music player. I start to listen to some music then lock the screen and the pause does nothing. Nor do any of the buttons.
This is a real nice mod.
Thanks!
This mod modifies the power_profile.xml in framework-res.apk. The values are used in Battery Usage to display how much battery has been used. The values LG used are way off, most notable is the Cell Standby and Phone Idle bug which reports using almost all the battery.
The values I have used are my estimates for battery consumption. I based this on the power_profile.xml values from the Nexus and Galaxy i9000, then modified a bit to what I think is correct based on readings from Power Tutor. Feel free to change any values you think are incorrect.
Please note that the framework-res.apk changes for each rom and for each build of a specific rom. Do not use a mod'd file for another rom or another build.
This is my mod'd power_profile.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">81</item>
<item name="bluetooth.active">142</item>
<item name="bluetooth.on">0.3</item>
<item name="bluetooth.at">35690</item>
<item name="screen.full">256</item>
<item name="wifi.on">4</item>
<item name="wifi.active">202</item>
<item name="wifi.scan">202</item>
<item name="dsp.audio">88</item>
<item name="dsp.video">88</item>
<item name="radio.active">185</item>
<item name="gps.on">108</item>
<item name="battery.capacity">1500</item>
<item name="radio.scanning">88</item>
<array name="radio.on">
<value>3.4</value>
<value>3.4</value>
</array>
<array name="cpu.speeds">
<value>300000</value>
<value>600000</value>
<value>800000</value>
<value>1000000</value>
</array>
<item name="cpu.idle">1.4</item>
<item name="cpu.awake">44</item>
<array name="cpu.active">
<value>85.3</value>
<value>154.1</value>
<value>205.4</value>
<value>259.0</value>
</array>
</device>
How to install:
1. Pull your existing framework-res.apk file
2. Download/Install 'APK MultiTool v1.02 from http://apkmultitool.com/
a) Run Script first to make the folders.
b) Place your framework-res.apk file in the folder called 'place-apk-here-for-modding'
c) Use Option 25 to select current project, select framework-res.apk
d) Use Option 9 to decompile the apk
e) The decompiled file will be placed in the projects folder
f) Open projects\framework-res.apk\res\xml\power_profile.xml with notepad
g) Copy the above xml code and replace the contents, then save your file.
h) use option 11 to compile the file (If you get compile errors complaing about can't find aapt, download from the same website 'APK Manager 5.02'. Copy the file from other\aapt.exe into your apk_multitool folder.)
i) When asked if it is a system file, enter y
j) When asked if you want to copy additional files, enter n (If you use this option, it will rebuild the apk incorrectly)
3. In the 'place-apk-here-for-modding' there will be a new file called 'unsignedframework-res.apk'. Open this with 7zip, also open your original framework-res.apk in 7zip.
4. Drag the file called resources.arsc from the unsignedframwork-res.apk window into the framework-res.apk window, overwriting the existing file.
5. In both 7zip windows, navigate to res\xml folder, and drag the file called power_profile.xml from the unsignedframwork-res.apk window into the framework-res.apk window, overwriting the existing file.
6. Your framework-res.apk has now been modded and can be pushed to the phone.
To build an update.zip flashable from CWM
1. Download Update.zip 2.0 Modifier/Creator from http://forum.xda-developers.com/showthread.php?t=717437
2. Download my cwm zip for Temasek build 56 from the link below
3. With 7zip, extract the contents of my update.zip file and place them in the Update-Zip_Packager\placehere folder. There should be 2 folders, META-INF and system.
4. Navigate to system\framework and delete my framework-res.apk file. Copy your mod'd version into this folder.
5. If you plan to upload your mod'd file for others to use, edit the file META-INF\com\google\android\updater-script with notepad and change the line ui_print("temasek's p970 KANG build P20-56"); to display the rom/build you've modded.
6. Run the script in Update-Zip_Packager and select option 2
7. Rename the update.zip file with rom/build numbers, copy to the SD card of your phone and flash through CWM. Remember to nandroid backup before flashing. Also recommended to wipe Dalvik cache.
For anyone running Temasek Self-Kang #56, you can flash my file through cwm.
Download from: http://www.mediafire.com/?d210riqatvgv9k9
Enjoy.
Very nice, we need more of this things (if it works). Thanks for sharing.
Thanks for sharing.
Will try this on my Marvel ROM.
thanksssss for sharing
First of all, thanks for sharing.
jason600 said:
This is my mod'd power_profile.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">81</item>
<item name="bluetooth.active">142</item>
<item name="bluetooth.on">0.3</item>
<item name="bluetooth.at">35690</item>
<item name="screen.full">256</item>
<item name="wifi.on">4</item>
<item name="wifi.active">202</item>
<item name="wifi.scan">202</item>
<item name="dsp.audio">88</item>
<item name="dsp.video">88</item>
<item name="radio.active">185</item>
<item name="gps.on">108</item>
<item name="battery.capacity">1500</item>
<item name="radio.scanning">88</item>
<array name="radio.on">
<value>3.4</value>
<value>3.4</value>
</array>
<array name="cpu.speeds">
<value>300000</value>
<value>600000</value>
<value>800000</value>
<value>1000000</value>
</array>
<item name="cpu.idle">1.4</item>
<item name="cpu.awake">44</item>
<array name="cpu.active">
<value>85.3</value>
<value>154.1</value>
<value>205.4</value>
<value>259.0</value>
</array>
</device>
Click to expand...
Click to collapse
Would you mind sharing how you arrived at those values?
jason600 said:
How to install:
<snip>
4. Drag the file called resources.arsc from the unsignedframwork-res.apk window into the framework-res.apk window, overwriting the existing file.
5. In both 7zip windows, navigate to res\xml folder, and drag the file called power_profile.xml from the unsignedframwork-res.apk window into the framework-res.apk window, overwriting the existing file.
6. Your framework-res.apk has now been modded and can be pushed to the phone.
Click to expand...
Click to collapse
Why is it important to replace the files in the original framework-res.apk, instead of just using the new one?
1aca said:
Would you mind sharing how you arrived at those values?
Click to expand...
Click to collapse
I started with the power_profile.xml from the Samsung i9000 (pretty much the same hardware as the Optimus Black, also the same one the Nexus uses). Some of the values didn't look right to me, for example wifi seemed to low. I used Power Tutor to show how much battery was being used for the screen at min/mix, wifi/wifi scanning, gps and processor (values in Power Tutor are Mw), then converted to mA (values in power_power.xml use mA). All other values I left alone.
As far as I'm aware, nobody has done a full power profile for our OB (connecting the battery to a multimeter and recording battery drain for diferent things). If/when someone does, we can use this values to get a more accurate display.
1aca said:
Why is it important to replace the files in the original framework-res.apk, instead of just using the new one?
Click to expand...
Click to collapse
I replace the files in the original framework-res.apk to workaround a bug in APK MultiTool 5.02. When compiling the apk, if you use the option to keep unmodified files, APK MultiTool puts a new folder in the apk called build, with the unmodified files instead of just replacing. The method I use is a manual workaround to do the same thing correctly. The reason to keep unmodified files is to reduce the possibility of errors with complied/signed files.
Has someone tried this? I think that battery monitor show the time an app has been on, not the power it consumes, so is understandable that Idle and sleep show the most time as this are almost always ON.
re4lsk said:
Has someone tried this? I think that battery monitor show the time an app has been on, not the power it consumes, so is understandable that Idle and sleep show the most time as this are almost always ON.
Click to expand...
Click to collapse
Yes, I changed the power_profile.xml in my ROM. So far it's looking better than the stock one.
Why would a battery usage app care about used up time instead of used power? That's nonsensical. It's like comparing the energy requirements of a person who's training 6 hours a day with that of someone who sleeps 18 hours a day by comparing the times and not taking into account the energy consumption during that time. It's beyond ridiculous.
1aca said:
Yes, I changed the power_profile.xml in my ROM. So far it's looking better than the stock one.
Why would a battery usage app care about used up time instead of used power? That's nonsensical. It's like comparing the energy requirements of a person who's training 6 hours a day with that of someone who sleeps 18 hours a day by comparing the times and not taking into account the energy consumption during that time. It's beyond ridiculous.
Click to expand...
Click to collapse
dude, that was I thougth, just cuz when you click an activity in the battery manager(the stock that cames with any rom) it just shows the time the app has been running. battery monitoring its not my thing, I prefer performance rather than battery (but a balance between them is what I'll look) just was asking if it works to add this to my rom.
PS to 1aca: relax, breathe in and breathe out...
re4lsk said:
Has someone tried this? I think that battery monitor show the time an app has been on, not the power it consumes, so is understandable that Idle and sleep show the most time as this are almost always ON.
Click to expand...
Click to collapse
For apps, it shows how much processor usage (not time used) that app has used and bases power usage for that on the values supplied for the processor. For example, if an app max's out the processor for 10 minutes, it is obviously using more power than an app that sits idling for 10 minutes.
Cell standby uses a couple of mA, phone idle is when the processor is asleep and uses next to nothing. Compare that with the screen on max at approx 256 ma or wifi using about 200 ma when active. If LG's values were correct, we'd run through our batteries in a couple of hours of standby, without even turning on the phone!
Is there an easier way to do this?
AysBerg said:
Is there an easier way to do this?
Click to expand...
Click to collapse
Ask the dev of whichever rom you use to include it in the rom.
Dunno why but ICS use non-traditional cpu speeds. It's the same as CM10 as it was based on KU5900 ICS. https://github.com/CyanogenMod/android_device_lge_p970/commit/740f579dc1001d223139a1dc1b7d72be8f0bb10c
It's using 100mhz, 200, 400, 800, 1ghz... Any known problem with this?
{
"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"
}
Can someone please make a flash able zip of the mod and upload???
Thanks in advance
Sent from my Potato
gabwerkz said:
Dunno why but ICS use non-traditional cpu speeds. It's the same as CM10 as it was based on KU5900 ICS. https://github.com/CyanogenMod/android_device_lge_p970/commit/740f579dc1001d223139a1dc1b7d72be8f0bb10c
It's using 100mhz, 200, 400, 800, 1ghz... Any known problem with this?
Click to expand...
Click to collapse
Shouldn't cause any problems to change, thats what I did when I originally did this mod.
The Battery Usage is not very acurate, it pulls info from batterystats.bin, then does calculations on them, also a lot of things aren't covered, such as GPU, SD, sensors, diferences for 2G,3G etc.
All you can really do is tweak it to what feels right for you.
@Vivek_Vivek. Its not practical to upload a flashable mod as a mod for one rom won't work on another one, every build of every rom needs a separate mod, hence the tutorial to do it yourself. Also, its not needed for CM10/ICS roms, the problem seems fixed in those.
Thanks. I include here in my next rom
{
"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"
}
You will see many ROMs like SUVI ROM, Creed's ROM etc. having a transparent effect. Adding this feature is easy but some developers won't tell their secret. So I will show you a very easy guide by which you can add 'transparent' effect in your ROM.
How to make any Rom transparent
I am not responsible for your bootlooped devices!
I will be showing you for types of transpareny effects.
Requirements
1 APKManager.
2 framework-res.apk
3 Notepad++
For Eclair, Froyo and Gingerbread
1 Guide-
1- Decompile app from apktool/apkmanager etc etc !!
2 Goto framework-res (is by apktool , framework-res.apk is by apkmanager) folder and goto Res>values
3 Open 'styles.xml'
4 Search for <style name="Theme"> tag
5 Edit some lines like this
Code:
<item name="colorBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
Search for <style name="Theme.Black" parent="@style/Theme">
Edit like this
Code:
<item name="colorBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
The End
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Guide-
1- Decompile app from apktool/apkmanager etc etc !!
2 Goto framework-res (is by apktool , framework-res.apk is by apkmanager) folder and goto Res>values
3 Open 'styles.xml'
4 Search for <style name="Theme"> tag
5 Edit some lines like this
Code:
<item name="colorBackground">[COLOR="Red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="Red"]@drawable/youpicturename[/COLOR]</item>
Search for <style name="Theme.Black" parent="@style/Theme">
Edit like this
Code:
<item name="colorBackground">[COLOR="Red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@drawable/yourpicturename[/COLOR]</item>
The End
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Guide-
1- Decompile app from apktool/apkmanager etc etc !!
2 Goto framework-res (is by apktool , framework-res.apk is by apkmanager) folder and goto Res>values
3 Open 'styles.xml'
4 Search for <style name="Theme"> tag
5 Edit some lines like this
Code:
<item name="colorBackground">#93ffffff</item> (or any hex color)
<item name="windowBackground">#0000000</item> (or any hex color)
Search for <style name="Theme.Black" parent="@style/Theme">
Edit like this
Code:
<item name="colorBackground">#00000</item> (or any hex color)
<item name="windowBackground">#00000</item> (or any hex color)
The End
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 Guide-
1- Decompile app from apktool/apkmanager etc etc !!
2 Goto framework-res (is by apktool , framework-res.apk is by apkmanager) folder and goto Res>values
3 Open 'styles.xml'
4 Search for <style name="Theme"> tag
5 Edit some lines like this
Code:
<item name="colorBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@color/transparent
<item name="windowShowWallpaper">true</item>[/COLOR]</item>
Search for <style name="Theme.Black" parent="@style/Theme">
Edit like this
Code:
<item name="colorBackground">[COLOR="red"]@color/black[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
<item name="windowShowWallpaper">true</item>
The End
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ics rom-:
FOR CM9 roms, you need to edit the theme.holo sections of styles.xml
If theme.light on froyo/GB then
theme.holo.light on ICS
forexample, theme.holo.noactionbar(actionbar=titlebar)
But in froyo/gb its theme.notification,,,
Just holo is added in ICS framework
After you end making transparent compile application and flash this framework-res.apk , for finding Hex value visit colorpicker.com
Chooose the guide suites you the best!!
PS. if you are using this guide in your rom make sure there is proper credits to this guide and link
Note-
drawable/yourpicturename means copy your .png file (will be background like in settings.apk) in drawable-mdpi (your device DPI)
Make sure perfect size !!
Cheeeeeeeeeeeeeeeeeeeeeeeeeeeeers...!!
Plz hit thanks to guide and post comments for more guides
I dont really get the ICS part....
could you explain it further..
rocking bro
umm
awesome brooooo......!
:laugh::laugh:
forever king said:
[/CENTER]
Ever thought your rom can be transparent...!!??
Ah! its awesome but i dont know how to make!!??
...
Click to expand...
Click to collapse
Why dont add some shot of your ROM?
you forgot to require an android phone
sorry friend edited all lines
<item name="colorBackground"> y
<item name="windowBackground">
for that is what I do and does not work
* I'm on ics
Can you provide me some SS for make it clear
GSculerlor said:
Can you provide me some SS for make it clear
Click to expand...
Click to collapse
Nopes, sorry. Please ask here what's difficult in it?
Forever Alone said:
Nopes, sorry. Please ask here what's difficult in it?
Click to expand...
Click to collapse
I think it bit easy, but just avoid bootloop And i just choose 1 guide right ?
Edit : Sir i done try it. It not make bootloop. But make i can do anything cause my backgroud is covering any app. I use last guide Please help me
GSculerlor said:
I think it bit easy, but just avoid bootloop And i just choose 1 guide right ?
Edit : Sir i done try it. It not make bootloop. But make i can do anything cause my backgroud is covering any app. I use last guide Please help me
Click to expand...
Click to collapse
<item name="windowShowWallpaper">true</item></item> > "false".
Then replace @Color/transparent to "#424242" or with any SEMI TRANSPARENT or a TRANSLUCENT color.
Forever Alone said:
<item name="windowShowWallpaper">true</item></item> > "false".
Then replace @Color/transparent to "#424242" or with any SEMI TRANSPARENT or a TRANSLUCENT color.
Click to expand...
Click to collapse
So, i must keep windowShowWallpaper false ?
GSculerlor said:
So, i must keep windowShowWallpaper false ?
Click to expand...
Click to collapse
false will MAKE YOUR WALLPAPER NOT SHOW IN THE BACKGROUND where as true will MAKE YOUR BACKGROUND SHOW IN THE BACKGROUND..Gotcha?
Forever Alone said:
You will see many ROMs like SUVI ROM, Creed's ROM etc. having a transparent effect. Adding this feature is easy but some developers won't tell their secret. So I will show you a very easy guide by which you can add 'transparent' effect in your ROM.
Click to expand...
Click to collapse
how about semi-transparency ? how to do it ?
EpullSalvatrucha said:
how about semi-transparency ? how to do it ?
Click to expand...
Click to collapse
semi transparent color codes.
dint work
tried all the steps but dint work
ashwinvishesh said:
tried all the steps but dint work
Click to expand...
Click to collapse
ICS and above? Did you add Holo?
Forever Alone said:
ICS and above? Did you add Holo?
Click to expand...
Click to collapse
hey.. i am on gingerbread and tried the last method... but after doing that method, no app is visible... every thing became transparent.. apps are running but i am only able to see my wallpaper nothing else... please help me asap
Reserved
Hi anyone can help me. Yesterday i try to edit setting.apk to change image. But before edit, i try to decompile and recompile.
After recompile i try push my setting.apk (no edit, just decompile and recompile and then push to system with permission 0644) but my setting is lost? What happen?
Help me.
Sent from my Lenovo A328 using XDA Free mobile app
Just sharing my own setup here, in case others are also still interested in the good old Holo look.
EDIT: Added another version, Holo Theme with Sony Quicksettings.
It also has center-clock and 1%-step circle battery.
Downloads are still on the same shared folder. More info and screenies at this post.
Warning: This is ONLY applicable for DE-ODEX Rom!
What is themed on this setup?
- framework-res.apk (pretty much all[or most] the Sony Semc images are not rendered anymore and replaced with Holo images)
- SystemUI.apk (signal images)
- Settings.apk (icon images)
- framework.jar (for us to de/recompile framework-res.apk properly, also this has the Honami Home mod integrated)
- services.jar (also just for compatibility with Honami Home mod)
Screenies:
{
"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"
}
Download:
Holo Theme for TX
***
Just one caveat though, the notification panel clock and toggles are not themed(I think it's tied in smali).
As a temporary workaround, I edited the Sony Sapphire accent theme, and make it more holo #33b5e5.
Choose it in setting-display-theme-Sapphire after you flashed the theme's zip.
***
thanks to:
@dully79 for all the many knowledge that he shared with me in modding
@mcsqwizzys98 for the same reason as well
@niaboc79 for his Honami Home framework.jar/services.jar
@erorcun for his tut on properly de/recompiling Sony framework without having bootloop
BTW, this mod is XTheme-friendly, that's the reason I still made it as my base.
Switch buttons and backgrounds are changed properly in xTheme just to name a few.
You will notice the difference when you try to flash any XTheme themes, even those without any Sony redirections.
EDIT:
The below version is the one I'm actually personaly using to be much more friendly with xTheme themes
I just made the dialog title white and status bar clock-color white so that they will look neutral and not out of place whenever l apply any xTheme themes.
I did that because they can't be themed in xTheme.
Optional version(more xTheme-friendly, also the status bar clock is at center):
http://www.mediafire.com/folder/u06n5h1qui9he/A_version_more_xTheme_friendly
And ofc, I edited Xperia accent theme to white as well to make the toggles white also.
Select it in settings-display-Theme-Xperia after flashing the zip.
Below is a sample when I apply an xTheme theme:
I know this is for the TX but they're so similar, do you think it'd work on the T?
Not sure Matt, coz some ID 's may be different, that's what I encountered on one of the V mod(although that's for V).
Try it mate, anyway the universal flasher tool will automatically create a backup undo zip also.
Tapatalked from my bricked TX
good to see you are still doing good job mate
Rycon33 said:
Not sure Matt, coz some ID 's may be different, that's what I encountered on one of the V mod(although that's for V).
Try it mate, anyway the universal flasher tool will automatically create a backup undo zip also.
Tapatalked from my bricked TX
Click to expand...
Click to collapse
Yeah, I wouldn't be surprised if it failed, I'll try anyway but make a backup.
I'm a big fan of the holo theme! used it back when skyfri still supported it but it got dropped and is incompatible with later JB versions.
I'll let you know how it works out, good work on this bro!
Generally it was fine on my Xperia T,
a few minor problems, the power menu was pretty screwed up! It looked like this:
I did some editing in the framework and it now looks like this:
I know under airplane mode it still says 'silent mode' but it's a minor detail and not that much of an issue for me personally. I couldn't figure how to change it anyway, may take a look another time!
One last slight minor detail: upon boot it say's 'pin operation failed' in the top right for a few seconds, but then turns to 'emergency calls only' and finally to 'EE' (as that's my network). so once again a very small minor issue but that's expected when cross flashing!
Other than this, it seems to all work fine on the T, haven't found anything else! So I'm keeping it on my device, love the holo theme!
Here is my framework-res: http://www.mediafire.com/?ijo0oz3b0tro679
This makes the power menu as seen above for the Xperia T! feel free to put it in the OP if you want so other T users can grab it easily
Matt, they are only IDs for airplanemode etc, that is being called in smali, should be easy to get a fix
I wonder why Sony really gave different IDs for those few minor things only LoL
Good:good: to know that it's somewhat working on T, I'll try or anybody with T can help me hunt those IDs
Rycon33 said:
Matt, they are only IDs for airplanemode etc, that is being called in smali, should be easy to get a fix
I wonder why Sony really gave different IDs for those few minor things only LoL
Good:good: to know that it's somewhat working on T, I'll try or anybody with T can help me hunt those IDs
Click to expand...
Click to collapse
I'll try have a look later, I did a lazy fix and changed the strings rather than the ids
matt4321 said:
I'll try have a look later, I did a lazy fix and changed the strings rather than the ids
Click to expand...
Click to collapse
I guess the best way is to see the original IDs of those images in public.xml, hunt them in smali, then replace with the new IDs.
I think the hard part is hunting down which smali files they are used and called.
@Rycon33: can you make one version with lidroid status bar?
charmidz said:
@Rycon33: can you make one version with lidroid status bar?
Click to expand...
Click to collapse
I've tried mate, believe me, many times, but for some reason it's way out of my comprehension LoL
The one I tried before is from Leo's SystemUI(based on peetr's mod) but Leo also has so many mods integrated into it that I don't personally like so I didn't stick to it.
To others that knows it, feel FREE to use this mod as your base for integrating other mods as well.
Just share it here if possible once finished LoL, hehehe.
Yep!
hope someone makes it :good:
Thanks for the metion Rycoooon and nice work
To track the id it should be quite simple.
Obtain the id from public.xml.
Open all smali files in notepad++.
Click search>find enter the id and click "find all in all opened documents".
If you dont use notepad++...why? It's the shizz!
I'd help look but i've just finished a 14 hour shift and i cannot be bothered to stare at a screen.
I'll do it some time soon,
Just not motivated enough to do it now as my temp fix looks fine.
Sent from my LT30p using Tapatalk 4
How do the ids not match if your flashing Rycons mod with his framework-res and framework-jar, surely they should match against each other?
What did you flash matt?
dully79 said:
How do the ids not match if your flashing Rycons mod with his framework-res and framework-jar, surely they should match against each other?
What did you flash matt?
Click to expand...
Click to collapse
I flashed the whole package! so had his systemui, settings, framework-res, the jars. all of it. but as my post on the previous screen shows something weird was up. so just edited some strings as a temp fix
matt4321 said:
I flashed the whole package! so had his systemui, settings, framework-res, the jars. all of it. but as my post on the previous screen shows something weird was up. so just edited some strings as a temp fix
Click to expand...
Click to collapse
I'm not particularly clued up with strings and smali etc, but you'd think if you flashed the whole package the ids would correlate with one another.
Ive just decompiled and baksmalied the apk and jar file and this is what i get.
Rycons:
I serached strings.xml- "Do you want to reboot into safe mode?" = <string name="reboot_safemode_confirm"
Then i serached public.xml for reboot_safemode_confirm =
Code:
<public type="string" name="reboot_safemode_confirm" id="[COLOR="Red"]0x0104018e[/COLOR]" />
I opened up deodexed T framework-res public and searched 0x0104018e = "global_action_power_off"
That tells me that Rycons framework apk/jar didnt take.
You could try swapping the public.xmls between your framework-res.apk and Rycons to make the ids match up with the framework.jar
dully79 said:
I'm not particularly clued up with strings and smali etc, but you'd think if you flashed the whole package the ids would correlate with one another.
Ive just decompiled and baksmalied the apk and jar file and this is what i get.
Rycons:
I serached strings.xml- "Do you want to reboot into safe mode?" = <string name="reboot_safemode_confirm"
Then i serached public.xml for reboot_safemode_confirm =
Code:
<public type="string" name="reboot_safemode_confirm" id="[COLOR="Red"]0x0104018e[/COLOR]" />
I opened up deodexed T framework-res public and searched 0x0104018e = "global_action_power_off"
That tells me that Rycons framework apk/jar didnt take.
You could try swapping the public.xmls between your framework-res.apk and Rycons to make the ids match up with the framework.jar
Click to expand...
Click to collapse
I'm pretty sure it did take, no error in cwm and the theme is all in place. I don't know why the id's mismatch. I'll look into it tomorrow, bit late to start now, it could take a while
I got another idea Matt, can you try this,
Decompile my framework-res.apk and get the following:
drawable folder
drawable-xhdpi folder
styles.xml
drawables.xml
Then copy it and paste to your own framework-res.apk and then recompile.
{
"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"
}
- Section One -
Hey guys! I'm back again with another contribution to the community, this time I'm posting a guide on behalf of my theme, Svelte UI.
I have noticed there is a very few amount of theme's available for the new CyanogenMod Theme Chooser out there. And hopefully I can change this.
This guide will cover everything needed to create a Theme, from creating the initial project to theming itself. And some tips on how I theme.
And to make all you lovely people even happier. I will provide all code and even a sample .apk
And also I don't want to add screenshots of my desktop to this thread, because the resolution will be way to big. Instead I'll have links. So let's get started shall we?
VIDEO TUTORIALS
[x] One - Create Project
[x] Two - Initial Setup
More coming.
- Section One -
This section is vital for you to accomplish your theme, so please do not skim through it.
For the requirements, you need an IDE. Yes I will be showing you how build the theme from scratch and not a template.
Use an IDE that you're comfortable with, I wont be showing yo how to use it. I will be using Eclipse for this tutorial.
You will need an image editing program, I am going to use Paint.NET. It's free, advanced, and does the job as good as Photoshop.
We are also going to need patience. Yeap. Theming takes allot of time and patience, it is frustrating especially if you're doing precise editing but it's worth it at the end.
One more thing we are going to need is, an APK decompiler. So download one you like, install the required .apk's for it to work properly.
Then get hold of the SystemUI.apk and Framework-res.apk, we're going to use this later.
- Section One -
Okay, now go ahead and open up your IDE, and create a new Project, give it a name and an appropriate package name.
For example mine is "Svelte UI" and "com.ascendapps.sui". [View Screenshot]
Now click next till you end the project setup. Once your project has been created.
- Section Two -
Go ahead and delete the following folders.
[src, layout, menu, values-sw600dp, and values-sw720dp-land also delete drawable-ldpi if you want] [View Screenshot]
Now in the values folder, create a new xml and call it "public.xml" and make sure to delete the "dimens.xml" file.
Inside the xml file (public.xml) add the following code - [View Screenshot]
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="drawable" name="ic_launcher" id="0x7f020000" />
<public type="string" name="app_name" id="0x7f030000" />
<public type="style" name="AppBaseTheme" id="0x7f040000" />
<public type="style" name="AppTheme" id="0x7f040001" />
</resources>
- Section Three -
Now go ahead and save it. Make you save things when working throughout your project, better be safe than sorry.
Open up AndroidManifest.xml, and add the following code and do what it tells you - [View Screenshot]
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="7" android:versionName="1.0" package="com.ascendapps.sui" <!-- Enter the package name of your project that you had done in the setup earlier -->
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature android:name="org.cyanogenmod.theme" android:required="true" />
<application android:label="Svelte" android:icon="@drawable/ic_launcher" android:hasCode="false" /> <!-- Change label to theme name -->
<meta-data android:name="org.cyanogenmod.theme.name" android:value="Svelte" /> <!-- Name of Theme -->
<meta-data android:name="org.cyanogenmod.theme.author" android:value="Krish Gounder" /> <!-- Your Name -->
</manifest>
.
Please make sure to delete the Info statements once you've finished editing the xml.
For example delete the lines in green. Which is the following -
Code:
<!-- Your Name -->
<!-- Name of Theme -->
<!-- Change label to theme name -->
<!-- Enter the package name of your project that you had done in the setup earlier -->
- Section Four -
Now save your project, and close everything. Once closed, navigate to your project workspace. In there you should see your projects name.
Like this . [View Screenshot]
Open the the project then inside the work folder open the "Assets" folder. This is where everything comes to life.
Go ahead, and create the things you want to be included in your theme.
- fonts - If you wish to use different fonts in your theme.
- images - The images that are displayed when applying the theme.
- overlays - You must create this folder, this is where all the theming images are kept.
- wallpapers - If you want to add a wallpaper to your theme. Use .jpg
- bootanimation- Add a .zip file of your bootanimation in here.
- alarms - If you want to add alarm sounds to your theme.
- lockscreen - Add a lockscreen wallpaper. Use .jpg
- notifications - If you want notification sounds.
- ringtones - If you want to have ringtone sounds.
I will be using images, overlays and wallpapers.
So inside the images folder you will need -
lockscreen_preview.jpg if you are having a lockscreen wallpaper.
styles_preview.jpg just add your wallpaper.
wallpaper_preview.jpg Just use the wallpaper and add an icon in the middle of the image.
Add your wallpaper in the wallpapers folder and name it - wallpaper1.jpg
[Screenshot One] - [Screenshot Two] Now we've completed this section.
- Section One -
For theming you'll need a reasonable image editing software, Paint.NET works quite well.
So you want to know how to theme apps and components? Let's start with the framework-res.apk.
Earlier, I had stated that you'll need an APK Decompiler. So using the decompiler, decompile the framework-res.apk.
Open up to decompiled project and navigate to the folder you wish to work on. for example, drawable-xxhdpi.
Now in your theme work folder, go into "overlays" and create a folder called "android"
Inside there, create a folder called "res" and inside "res" create drawable-xxhdpi or the folder you chose.
Now go back to the project you decompiled earlier, and copy in all the .png files that you know you'll theme.
- Section Two -
How to them other apps and get it to work. the way the theme chooser knows what to them is by package names.
So if you want to theme an app you''l need to find out it's package name. For example Instagram is - com.android.instagram
If you make a folder with that name, and inside you have to create the res folder, it's basically the same layout but the initial name is the package name.
- Section Three -
It's often weird to work with .9.png's when you come face to face with it the first time. The best way to edit them is by working with the image inside the borders.
By this I mean, when you open the image in an editor it has these black lines around the edges, using a selecting tool. select everything inside the border, and do not select the border.
These borders help the Android system with stretching the image.
CREDITS -
[x] Me for preparing this guide.
[x] CyanogenMod Team for the Theme Chooser.
[x] Imgur
[x] XDA
[x] Eclipse
[x] QuickMod Dev
[x] And curiosity.
RESERVED
This section is user based, so if you need help with theming something.
Let me know and I'll update this thread post and I'll directly link you to the info.
When theming a specific application, whether it's a system app or a normal app.
You will need to give the folder the package name so the system knows what to theme.
So if you want to theme the settings app you'll have to name the folder "com.android.settings".
Thanks to @Vincentmrl He requested me to add these so people have a better idea and don't get confused.
The names on the left correspond to the app to right.
android (framework-res.apk)
com.android.dialer (Dialer.apk)
com.android.email (Email.apk)
com.android.keyguard (Keyguard.apk , lockscreen theming)
com.android.settings (Settings.apk)
com.android.systemui (SystemUI.apk)
I will be adding more to these. And easy way of finding the apps package name is by looking at its PlayStore url.
Or by checking in android app manager.
- Section One - Add your own custom background
First of all, you'll need to create or find your own image.
Make sure it's a reasonable size, this is basically a common sense statement.
Don't use a really small image. Okay once you've gotten your image.
Change the name of the image to the following - background_holo_dark.png
Place this image in the following folder - /overlays/android/res/drawable-nodpi
Once done, you need a way for the system to find the image, you can do this by creating a new styles.xml in the values folder.
So go ahead and create a file named styles.xml in the values folder.
The next thing you have to do is add this code inside your xml file.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Black" parent="@*android:style/Theme">
<item name="android:colorBackground">@color/transparent</item>
<item name="android:windowBackground">@drawable/background_holo_dark</item>
</style>
</resources>
Save the file and you're done.
Thank you guy, I love it, maybe I'll do one
GæxD said:
Thank you guy, I love it, maybe I'll do one
Click to expand...
Click to collapse
Goodluck! let me know when you make it. I'll be glad to check it out. :]
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
Goodluck! let me know when you make it. I'll be glad to check it out. :]
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks again
I have one question, how to change this colors? Example, I marked the colors in red:
The switch button can be change in the framework-res.apk.
And the text can be changed in colors.xml. it should be displayed as "primary_text" and "secondary_text".
Edit - You may need to look in Settings.apk for the text colors. If they don't work, then look for it in framework-res.apk.
It will be a trial and error thing, so you'll have to test many times.
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
The switch button can be change in the framework-res.apk.
And the text can be changed in colors.xml. it should be displayed as "primary_text" and "secondary_text".
Edit - You may need to look in Settings.apk for the text colors. If they don't work, then look for it in framework-res.apk.
It will be a trial and error thing, so you'll have to test many times.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Okay
You can make a tutorial explaining better this part of colors and others things to put in OP. Other peoples may also have the same doubt =)
GæxD said:
Okay
You can make a tutorial explaining better this part of colors and others things to put in OP. Other peoples may also have the same doubt =)
Click to expand...
Click to collapse
Thanks, I will be sure to add more info about this when I prepare it later.
I look forward
I have a theme in the works. ?
HI thank you for the guide but i keep getting 'Errorublic symbol style/AppBaseTheme declared here is not defined.' while using android studio. how do i solve this? it wont let me compile my apk.
RealiableCandy4 said:
HI thank you for the guide but i keep getting 'Errorublic symbol style/AppBaseTheme declared here is not defined.' while using android studio. how do i solve this? it wont let me compile my apk.
Click to expand...
Click to collapse
Use eclipse dude, with one click you install your apk on device and test the theme
What version of Eclipse are you guys using? I downloaded the Standard version and it keeps me prompting an error whenever I try to create the public.xml file. Any ideas?
torresfelipe said:
What version of Eclipse are you guys using? I downloaded the Standard version and it keeps me prompting a error whenever I try to create the public.xml file. Any ideas?
Click to expand...
Click to collapse
Eclipse Kepler, is the current one. I don't think you need a specific version.
Sent from my Nexus 5 using Tapatalk
torresfelipe said:
What version of Eclipse are you guys using? I downloaded the Standard version and it keeps me prompting an error whenever I try to create the public.xml file. Any ideas?
Click to expand...
Click to collapse
Eclipse Standard/SDK
Version: Kepler Service Release 2
Build id: 20140224-0627
Thanks guys. I might have done something wrong, but it's working now. I'm using the latest release, 4.4 Luna.
GæxD said:
Use eclipse dude, with one click you install your apk on device and test the theme
Click to expand...
Click to collapse
Thanks for the reply i fixed it by adding
Code:
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"></style>
in the styles.xml file
I used Generator to generate png/9.png files of my theme. Problem is that all of files look like this themename_background.png, themename_tab.png etc. (you know what i mean). How to make theme work with that named images? I need to edit some code to audo add this or how? Its not so easy to rename all pngs (takes alot of time)
I just cant do it.Downloaded eclipse with android SDK and aplication wizzard isnt that easy: next, next, next. Also i dont have folders what you said to delete... For me (newbie) its useless guide.. Just trying and still cant do anything because dont know how...
And finally when i will make any project how to build it to be ready to install?
@baciany Check your Pm
@TheArc;
Which APK Decompiler do you use? Do you think that something simple as http://www.decompileandroid.com/ would work?