<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
LinearLayout
xmlns:android
=
"http://schemas.android.com/apk/res/android"
android:orientation
=
"vertical"
android:layout_width
=
"fill_parent"
android:layout_height
=
"fill_parent"
>
<
TextView
android:orientation
=
"horizontal"
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:text
=
"MonoSpace Font:"
android:textSize
=
"16sp"
android:paddingLeft
=
"5sp"
/>
<
TextView
android:orientation
=
"horizontal"
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:paddingLeft
=
"5sp"
android:typeface
=
"monospace"
android:text
=
"Hello Red Monospace"
android:textSize
=
"16sp"
android:textColor
=
"#ff0000"
/>
<
TextView
android:orientation
=
"horizontal"
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:text
=
"Sans Font:"
android:textSize
=
"16sp"
android:paddingLeft
=
"5sp"
/>
<
TextView
android:orientation
=
"horizontal"
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:paddingLeft
=
"5sp"
android:typeface
=
"sans"
android:text
=
"Hello Blue Sans"
android:textSize
=
"16sp"
android:textColor
=
"#0000ff"
/>
<
TextView
android:orientation
=
"horizontal"
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:text
=
"Serif Font:"
android:textSize
=
"16sp"
android:paddingLeft
=
"5sp"
/>
<
TextView
android:orientation
=
"horizontal"
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:paddingLeft
=
"5sp"
android:paddingRight
=
"2sp"
android:typeface
=
"serif"
android:text
=
"Hello Green Serif"
android:textSize
=
"16sp"
android:textColor
=
"#00ff00"
/>
<
TextView
android:orientation
=
"horizontal"
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:paddingLeft
=
"5sp"
android:paddingTop
=
"15sp"
android:typeface
=
"normal"
android:text
=
"I'm normal font but I'm also bold and italic"
android:textSize
=
"16sp"
android:textStyle
=
"bold|italic"
android:textColor
=
"#ffffff"
/>
<
TextView
android:orientation
=
"horizontal"
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:paddingLeft
=
"5sp"
android:paddingTop
=
"15sp"
android:paddingBottom
=
"15sp"
android:typeface
=
"normal"
android:text
=
"I'm normal (bold) font but I have a shadow"
android:textSize
=
"16sp"
android:textStyle
=
"bold"
android:shadowColor
=
"#0f0f0f"
android:shadowRadius
=
"1.6"
android:shadowDx
=
"1.5"
android:shadowDy
=
"1.3"
android:textColor
=
"#000000"
android:background
=
"#ffffff"
/>
</
LinearLayout
>