标签:android 学习笔记 view textview 样式
Android View类:
1.所有的Android组件均是View的子类。
2.所有的组件均可以进行两种配置,一是通过方法进行配置。二是通过XML进行配置。<span style="font-family:SimSun;">String html += "<big><I><a href='http://www.baidu.com'>随时联系我</a></I></big>"; CharSequence charSequence = Html.fromHtml(html); textView1.setText(charSequence); textView1.setMovementMethod(LinkMovementMethod.getInstance());</span>
<span style="font-family:SimSun;"><resources>
<style name="样式名称" parent="父样式表">
<item name="定义的属性">属性内容</item>
</style>
</resources>
</span>其引用通过name里面定义的名称进行引用。
定义:
<span style="font-family:SimSun;">resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="msg_style" > --> 定义组件的样式名称
<item name="android:textSize">45dp</item>
<item name="android:textColor">#00FF00</item>
<item name="android:textStyle">bold|italic</item>
</style>
</resources></span><span style="font-family:SimSun;"><TextView
android:id="@+id/textview1"
style="@style/msg_style" /></span>标签:android 学习笔记 view textview 样式
原文地址:http://blog.csdn.net/podongfeng_/article/details/41490455