Is there anyway to make Android text in the xml file both bold and italics?
SAMPLE
是的,只需添加android:textStyle="bold|italic"
。
你试过这个吗?
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"
/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.