Make text bold and italic
题
Is there anyway to make Android text in the xml file both bold and italics?
SAMPLE
解决方案
Yes, just add android:textStyle="bold|italic"
.
其他提示
have you tried this
android:textStyle="italic|bold"
try this:
<Textview android:textStyle="bolditalic" ....
for more info see http://developer.android.com/reference/android/widget/TextView.html#attr_android:textStyle
<TextView
android:id="@+id/mTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold|italic"
android:text="YOUR_TEXT"
/>
不隶属于 StackOverflow