java - Why textStyle italic is not applied in Android layout for other typefaces than serif? -
below simple xml snippet android:textstyle="italic"
not applying.
if remove android:textstyle="italic
text appear.
<textview android:text="row one" android:textsize="15pt" android:typeface="serif" android:textstyle="italic" android:textcolor="#00abcd" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"/>
in above android:textstyle="italic"
working android:typeface="serif"
, if change typeface sans, monospace or normal android:text
not displaying.
why that?
try making text italic through strings file alternative might you
example
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="row_one"><i>row one</i></string> <string name="row_two"><i>row two</i></string> </resources>
Comments
Post a Comment