Correct Syntax for Changing Font Type? - Samsung Galaxy Nexus

Hello everyone, I'm currently messing around with my MMS app a little bit and I'm trying to change the font of a particular item's text to a thinner version of "Roboto". According to Android the font that ships with JellyBean is called "Roboto". I'd like to change the font from regular to the "thin" or "light" versions as referenced here: http://developer.android.com/design/style/typography.html
I've got the correct XML file open and I have android:typeFace="Roboto-Light" in the correct TextView field, but the apktool compiler doesn't like "typeFace" so that must be incorrect. What's the correct syntax to change a font's typeFace in an XML file?
Thank in advance,
Alcolawl

Related

SMS viewing font

Does anybody know where in the registry is the key that changes the font used when viewing an SMS? I changed all "Segoe Condensed" matches in the registry with another font and the SMS editing font has changed but not the viewing one.
I would also like to know that....Im sure font size can be edited too. Do you know where I can edit?
tech_girl said:
I would also like to know that....Im sure font size can be edited too. Do you know where I can edit?
Click to expand...
Click to collapse
WM6.1: Settings -> Accessibility -> Messaging edit font size
Other WM versions: No idea
rafeee2 said:
Does anybody know where in the registry is the key that changes the font used when viewing an SMS? I changed all "Segoe Condensed" matches in the registry with another font and the SMS editing font has changed but not the viewing one.
Click to expand...
Click to collapse
Change all instances of segoe or nina in all the CSS files in the windows directory to the font desired.
AbsoluteDesignz said:
Change all instances of segoe or nina in all the CSS files in the windows directory to the font desired.
Click to expand...
Click to collapse
It worked, thanks man.

samsung i600 font in sms

Hi, I wondering, if there is possible to change font size in sms, while composing and reading sms, because I found it to thin. I wish it were in bold at least.
I've read this thread http://forum.xda-developers.com/show...ht=change+font
put new font in windows/font, but when trying to change registry, but the the values didn't change.
maybe just someone have cab file to make font larger, or to make it in bold?

Font size

Hi to all,
i was trying for several days to enlarge my font on my desire.
tried out the "spare parts" - it make the change but not saving it
anyone know how to change the font size by editing an xml or other file system?
Someone have successes with that ??

Need help theming

Does anyone know what XML is responsible for the pop-up menu text color?
See screenshot.
I'm pretty confident it is in framework-res.apk, beyond that I am not sure.
+1 to this
DJZager said:
I'm pretty confident it is in framework-res.apk, beyond that I am not sure.
+1 to this
Click to expand...
Click to collapse
In all honesty, I don't think you answered his question...but good try (I think). He's referring to the XML file within that APK you mentioned that is responsible for the text colors in the homescreen menu options.
I still have to practice how to swap icons. I just want to change the spinning icon...
You're right, I am pretty confident that I didn't answer his question. The only reason to believe that the xml is in framework-res.apk is the fact that the icons and menu_background are also in framework-res.apk. I have found that although the icons are there, doesn't necessarily mean that the layout/colors/etc. are controlled by that apk.
For example, if you open com.htc.resources.apk you will find a ton of icons associated with the HTC Sense Dialer, but the color & layout are stored in phone.apk and HtcDialer.apk separately. I say all that to say this, I am pretty confident that you are looking for /res/values/styles.xml or maybe /res/values-hdpi/styles.xml in a decompiled framework-res.apk but 1) can't be sure that this is the correct xml to edit or 2) that the text color is even an xml edit.
So again, +1 to wanting to know how the text color is changed.
Nobody knows? All these theme experts and nobody helps....
Awesome!

[Q] XML File to change Text Color??

Does ANYONE know what XML file I would have to edit in the Facebook for android apk to make the text color of the app widget white?
-Meaning if you have the FB widget on your homescreen, usually the background is white and the text is black..ish. My background is now black and I want the text to be white instead of black...ish.
I can read the text, but it's quite annoying. And no, I do not want to go back to a white background if that was your solution = )
Thanks!
edgarzonjr said:
Does ANYONE know what XML file I would have to edit in the Facebook for android apk to make the text color of the app widget white?
-Meaning if you have the FB widget on your homescreen, usually the background is white and the text is black..ish. My background is now black and I want the text to be white instead of black...ish.
I can read the text, but it's quite annoying. And no, I do not want to go back to a white background if that was your solution = )
Thanks!
Click to expand...
Click to collapse
There are many xmls to look for. Check the values folder under color or drawable. Or it could be in layout under appwidget
free the dirk
Papa Smurf151 said:
There are many xmls to look for. Check the values folder under color or drawable. Or it could be in layout under appwidget
free the dirk
Click to expand...
Click to collapse
Yep, well I looked in there, but I wasn't sure it was the right spot to change the color since I kept seeing #ff000000 instead of #000000 which after extensive googling, I found out the ff is the transparency and the rest is hex. Ok so that makes sense now.
So for ANYONE who may want to know this... first decompile the apk so you can edit the xml color in values\drawable.xml and then compile apk AND THEN edit your res\hdpi files. Otherwise it doesnt work. This was the case for me anyway. I could be 101% incorrect, but this is the way it worked for me
edgarzonjr said:
Yep, well I looked in there, but I wasn't sure it was the right spot to change the color since I kept seeing #ff000000 instead of #000000 which after extensive googling, I found out the ff is the transparency and the rest is hex. Ok so that makes sense now.
So for ANYONE who may want to know this... first decompile the apk so you can edit the xml color in values\drawable.xml and then compile apk AND THEN edit your res\hdpi files. Otherwise it doesnt work. This was the case for me anyway. I could be 101% incorrect, but this is the way it worked for me
Click to expand...
Click to collapse
Yeah that is correct. The ff is transparency and also correct that u can decompile apk do ur XML/smali edits then recompile and do ur PNG edits.
free the dirk

Categories

Resources