[android-developers] Font rendering problem?
Please see here:
http://picasaweb.google.com/zvasvari/AndroidFontBug#
I am rendering two lines of text, the only difference is the color.
The red text looks obviously shorter and fatter, they are both 18sp in
height.
Is this a bug or am I doing something wrong?
The style for the white text is
<item name="android:textSize">18sp</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
For the red text it's the same size and style, but the color is a
custom color resource (but basically it's pure red, as given by the
last line):
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#50ff0000"/>
<item android:state_window_focused="false"
android:color="#a0ff0000"/>
<item android:state_pressed="true" android:color="#ff000000"/>
<item android:state_selected="true" android:color="#ff000000"/>
<item android:color="#ffff0000"/> <!-- not selected -->
</selector>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home