(1) res/values/style.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="style001">
<item name="android:textSize">18sp</item>
<item name="android:textColor">#EC9237</item>
</style>
</resources>
(2)res/layout/main.xml
<?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:layout_width="fill_parent"
android:layout_height="wrap_content"
style="@style/style001"
android:autoLink="all"
android:text="请访问我的博客:http://http://write.blog.csdn.net/postedit"
/>
</LinearLayout>