[Q] Help with resolving mis-aligned text. - Android Themes

Another user on this forum is having an issue with mis-alligned text. Originally they felt it was an issue with malformed .9.pngs, but I have replaced all the pngs in the framework with stock pngs and the issue is still ongoing.
Question I have is what controls the text alignment (an xml in framework? or elsewhere such as services.jar)
I have recently learned how to theme the Andoid OS. I understand how to de-compile an apk, make xml edits (color edits using word pad), re-compile the apk. (replace the android-manifest and meta folders from the recompiled apk with the originals).
I know how run baksmali on services.jar make the appropriate edit to change the clock color. (as far as the services.jar, That is truely all I know).
I would like like to help this person, but need a sense of direction as to where to begin looking to fix.
Any and all help regarding this would be greatly appreciated.
Below is a link to the original thread they posted with screen shots of the mis-aligned text.
http://forum.xda-developers.com/showthread.php?t=991105

Update:
Had him test another framework-res.apk and services.jar file from another rom and he still has the same results with mis-aligned text.
Where else should I look?
This is truely out of my realm, but I am always interested in learning, so I would like to see if I can come to the resolution.

Related

help making/undoing transparent/translucent button effects

Hi Guys
How do you make buttons have a transparent look? I have seen both some mods and roms that have made the sense launcher/navbar buttons transparent and or translucent. I have contacted the creators of the mods and roms and asked how they accomplished their effects but my requests for help have gone unanswered.
I imagine that the effects are made possible by an entery in one of the xml files I just don't know which files I should be looking at and what to be looking for inside those files.
Help would be greatly appreciated.
You need to find the PNG files that you want to change and create them so that they are transparent.
As an example, /system/framework/com.htc.resources.apk has a file called "lockscreen_arc.png. *see attached* It is semi-transparent (when viewed in photoshop).
What little I know how to do I learned from THIS, a few questions answered by JsChiSurf and some fearlessness to dig in and hope my nandroid saved me.
kelmar13 said:
You need to find the PNG files that you want to change and create them so that they are transparent.
As an example, /system/framework/com.htc.resources.apk has a file called "lockscreen_arc.png. *see attached* It is semi-transparent (when viewed in photoshop).
What little I know how to do I learned from THIS, a few questions answered by JsChiSurf and some fearlessness to dig in and hope my nandroid saved me.
Click to expand...
Click to collapse
So you are saying that it is the image itself that is transparent or translucent and not an attribute somewhere in one of the xml files?
What I am trying to do is actually undo the transparency/translucency of a an image. I figured it might be the result of an xml attribute since upon replacing the image with one of my own nothing changed (now I may not have replaced the correct image, this is always a possibility)
dsMA said:
So you are saying that it is the image itself that is transparent or translucent and not an attribute somewhere in one of the xml files?
What I am trying to do is actually undo the transparency/translucency of a an image. I figured it might be the result of an xml attribute since upon replacing the image with one of my own nothing changed (now I may not have replaced the correct image, this is always a possibility)
Click to expand...
Click to collapse
Well it can actually be done both ways some are controled by the image itself adn some are controlled my xml.
nfinitefx45 said:
Well it can actually be done both ways some are controled by the image itself adn some are controlled my xml.
Click to expand...
Click to collapse
If it is controlled by xml do you know what files I should be looking at and what inside the files I should be looking for?
Note this is for the laucher/navbar buttons in particular the ones found in konirosie (but I imagine any help could be applied generally)
I am just learning the editing of xml's myself, so I can really help much, this is a question that should be directed to JsChiSurf. That man is the expert on editing the xml's and could probably guide you to what you are looking for.

Change color of Button Text & General theming Questions

Does anyone know how to change the color of the text on buttons? Ive been messing around with my phone a lot and have somehow changed the color to white and now I cant see the text on buttons. I'm running kaos froyo but all of the framework-res has been replaced. I have tried colorchanger.jar but it doesn't control these colors and I cant seem to find what file it is?
I have found a great looking theme that has all it's graphics in the drawable-hdmi folder. The only thing I need to do to use them is resize them to same size as the corresponding file for our phone, correct? Basically spinner_black.png has to be the same dimensions as the original.
Also I want to take the spinner, wait, icon out of the NFL mobile app and use it in my theme. I have been reading a lot and trying to figure this out on my own. I am now able to read all xml files in plain readable English and am able to convert it back to binary. I still don't know what all the java means but I'm trying to learn that now. Does anyone know any easy way to find what I'm looking for or should I just wait and figure it out with the knowledge of more java.
For those who are interested the resources.arsc file found in framework-res.apk is where the control of the color of buttons is located. I dont know how to decompile it into readable form yet but that is what controls colors and size of images for some things. Colors for the notification bar is held is services.jar so at least Im making some headway. I will keep posting small things I find here to help anyone wanting to make there own themes.
P.S. My **** is starting to look really sweet
Did you figure it out?

[Q] Touchwiz Quickpanel Text under Icons help

I just started messing around with making themes. I know how to modify the xml, png, and .9.png files; but am having problems with the text under the quickpanel icons (ie. wifi, bluetooth, gps, vibrate, orientation).
What files do I need to modify to change the text color under the quickpanel icons? I'm assuming it's in the twframework-res.apk, but I looked through all the xml files and didn't see where to change the text color.
If anyone has some insight, please advise. Thanks
mod777 said:
I just started messing around with making themes. I know how to modify the xml, png, and .9.png files; but am having problems with the text under the quickpanel icons (ie. wifi, bluetooth, gps, vibrate, orientation).
What files do I need to modify to change the text color under the quickpanel icons? I'm assuming it's in the twframework-res.apk, but I looked through all the xml files and didn't see where to change the text color.
If anyone has some insight, please advise. Thanks
Click to expand...
Click to collapse
I have done some themeing before, and although I never have changed the text you are asking for and dont know where it is, I can tell you that the first thing you need to do is. Decompile the framework. This is because many xml's are hidden in the apk format. Searxh for apk manager to do so.
After decompiling look in twframework-res\res\layout\status_bar_expanded.xml
Each item will have something like android:textColor="@color/tw_colorXXX"
Then look for that in twframework-res\res\values\colors.xml
joeshmoe08 said:
I have done some themeing before, and although I never have changed the text you are asking for and dont know where it is, I can tell you that the first thing you need to do is. Decompile the framework. This is because many xml's are hidden in the apk format. Searxh for apk manager to do so.
Click to expand...
Click to collapse
I know how to decompile and modify the xml files and I use apktool (apkmanager is just a wrapper for apktool).
CuriousTech said:
After decompiling look in twframework-res\res\layout\status_bar_expanded.xml
Each item will have something like android:textColor="@color/tw_colorXXX"
Then look for that in twframework-res\res\values\colors.xml
Click to expand...
Click to collapse
I already modified the status_bar_expanded.xml colors and still the text doesn't show up correctly (changed all colors to #ffffffffff).
Maybe it's not the text that is the problem but the png background, but changing the status_bar_background.9.png didn't fix it.
Here's the screeny of what I am trying to fix.
I've seen that before. LOL What do you want it to look like?
You sure you didn't modify the text in \res\values\strings.xml?
CuriousTech said:
I've seen that before. LOL What do you want it to look like?
You sure you didn't modify the text in \res\values\strings.xml?
Click to expand...
Click to collapse
the text in strings.xml is correct. I just want the text to show
Change them all back to the orginal in status_bar_expanded.xml which should be android:textColor="@color/tw_color001"
That just made the text black, any other suggestions?
I think it might actually be the tw_quick_panel_black_bt.png - I'll modify the png and see if that helps.
tw_color001 should be white.
The background for it is status_bar_header_background_01.png which is where the text is drawn over.
I got it. It was the status_bar_extended.xml, but it was the size dpi which was causing the problems. Thanks for all the help. See screeny
+2 thanks
Can someone tell me how to change the notification text color? What is its corresponding value in the XML files? Thanks.
Just did a search. Looks like you have to get into the classes.dex in services.jar and modify StatusBarIcon.smali
http://forum.xda-developers.com/showthread.php?t=549309
Oh, or did you want the notifications in expanded?
In twframework-res\res\layout\status_bar_expanded.xml look at the lower section where you'll see android:textColor="#ffffffff" which is hex for white (ARGB), about 3 times. Leave the first FF alone. That's alpha channel.
CuriousTech said:
Just did a search. Looks like you have to get into the classes.dex in services.jar and modify StatusBarIcon.smali
http://forum.xda-developers.com/showthread.php?t=549309
Oh, or did you want the notifications in expanded?
In twframework-res\res\layout\status_bar_expanded.xml look at the lower section where you'll see android:textColor="#ffffffff" which is hex for white (ARGB), about 3 times. Leave the first FF alone. That's alpha channel.
Click to expand...
Click to collapse
The text in the expanded notifications panel. Thanks! Exactly what I was looking for.

[QUESTION] Theming Transparency GB Sense 2.1

Hi all,
I'm hoping that someone can help to get me started as I wish to start making more Mods and a theme without relying on UOT.
I am looking to learn how to make things within Rosie and SystemUI transparent such as Quick Settings and App drawer.
I've had a go with this theme by m-deejay. I have managed to make the notifications background transparent but not the bars within them or the quick settings.
I've tried to adjust the labels at the bottom by editing
Res, Drawable, status_bar_tab_off.9 and status_bar_tab_on.9 .pngs
but that doesn't seem to be working for me.
Any help from any themers to get me started will be much appreciated and credit given if and when I can finally get something up and working manually.
I am using photoshop and have avabox2 for signing etc
Thanks in advance
Bump for help
Mate you have to learn using apktool or apk_manager (it's easier - search here in xda to download)...
Just de-compile the Default SystemUI.apk and f.e take also a SystemUI.apk that you know it has transparency, rename it to SystemUItrans.apk f.e and de-compile it too...
Then use WinMerge application (it's for windows) and compare all folders of the 2 systemUI (drawable, layouts, values, etc) and see which .xml files are different...
Then duple click on .xml files that is with red color on WinMerge, and see the differences inside them...
If you read the lines that are diferent you will figure out what you want to change...
In SystemUI f.e there is a xml file with the name quick_settings.xml and has a line which write:
ScrollView android:id="@id/scroll" android:background="#66000000" android:fadingEdge="none" android:layout_width="fill_parent" ...
The android:background="#ffffffff" means that the background will be white... So for make it full transparent you have to change it to android:background="#00000000"
Also compare the smali folders that are created while de-compiling...
this is an example i gave you....
I use for decompile, recompile and zipalling the apk_manager4.9
Here is the Thread of apk_manager... So download it and if you have question ask there and the guys will help you more....
i found this thread a bit of help .
http://forum.xda-developers.com/showpost.php?p=9978779&postcount=62
altho it dont help much with rosie but i have managed to get rosie transparent in my theme from help in this thread.
http://forum.xda-developers.com/showthread.php?t=1078621&page=3
hope that helps mate
and what kalagas has said also i learned loads that way also
Kalagas, you are a gentleman and a scholar
Ajthescot, many thanks for the links.
If I ever get to the bottom of this theming then you guys will surely get credit and thanks for the help and advice.
Much appreciated

[Q] Help needed: How to change highlighting color in SMS application

Hello,
I would like to change color of highlighting numbers in SMS messages but I'm lost and not able to find a right place where to change it. I looked at framework-res.apk and also com.htc.resources.apk but no luck. See attached image, if not clear what I was talking about. Does anybody know where I can change such color, please?
Thanks for any help.
I am asking a similar question about theming and how to change the selected / highlighted "text color" when "cutting and pasting", searching or selecting a link in my browser.
Specifically for Sense ROMS 2.1 or 3.0 with GB 2.3.3 or 2.3.4. The T-Mobile HTC MyTouch theme called "Safari" has everything blue for the text selections and highlights, and want to have this same feature on a standard HTC ROM. Not a green color fan.
Looking for what *.xml file controls this in the framework files?
Is this XML in the
com.htc.resources.apk
framework-res.apk
files?
Again, trying to do the same thing, to learn which xml file controls this.
TIA
danielo said:
Hello,
I would like to change color of highlighting numbers in SMS messages but I'm lost and not able to find a right place where to change it. I looked at framework-res.apk and also com.htc.resources.apk but no luck. See attached image, if not clear what I was talking about. Does anybody know where I can change such color, please?
Thanks for any help.
Click to expand...
Click to collapse
malloy0 said:
I am asking a similar question about theming and how to change the selected / highlighted "text color" when "cutting and pasting", searching or selecting a link in my browser.
Specifically for Sense ROMS 2.1 or 3.0 with GB 2.3.3 or 2.3.4. The T-Mobile HTC MyTouch theme called "Safari" has everything blue for the text selections and highlights, and want to have this same feature on a standard HTC ROM. Not a green color fan.
Looking for what *.xml file controls this in the framework files?
Is this XML in the
com.htc.resources.apk
framework-res.apk
files?
Again, trying to do the same thing, to learn which xml file controls this.
TIA
Click to expand...
Click to collapse
Those color codes will be in the messaging apk not the the framework or the resources. HTC has many color codes over writting each other. I would start in the messaging app.
These color codes are MOSTLY in the framework files, otherwise when you change skins they would always be the same green. This is not the case. Try it yourself with a different skin other the the HTC default.
zelendel said:
Those color codes will be in the messaging apk not the the framework or the resources. HTC has many color codes over writting each other. I would start in the messaging app.
Click to expand...
Click to collapse
I know about themes more then you think. I don't use the stock SMS app so not so sure about that one but before you say I should try it have a look at the SS. I know my way around the framework enough to change everything.

Categories

Resources