[AndroidTips]Android预定义样式对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBo
[AndroidTips]Android预定义样式
对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。
"?android:attr/textAppearanceLarge"
"?android:attr/textAppearanceMedium"
"?android:attr/textAppearanceSmall"
使用方法为:
android:textAppearance="?android:attr/textAppearanceLarge"
纵向:
<View android:layout_width="1dip"CheckBox
style="?android:attr/starStyle"
类似标题栏效果的TextViewstyle="?android:attr/listSeparatorTextViewStyle"
其它有用的样式android:layout_height="?android:attr/listPreferredItemHeight"
android:paddingRight="?android:attr/scrollbarSize"
style="?android:attr/windowTitleBackgroundStyle"
style="?android:attr/windowTitleStyle"
android:layout_height="?android:attr/windowTitleSize"
android:background="?android:attr/windowBackground"
