诛仙手游怎样御剑飞行:android style
来源:百度文库 编辑:九乡新闻网 时间:2024/04/29 19:23:46
对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。
XML/HTML代码- "?android:attr/textAppearanceLarge"
- "?android:attr/textAppearanceMedium"
- "?android:attr/textAppearanceSmall"
使用方法为:
XML代码- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:textAppearance="?android:attr/textAppearanceSmall"
- 或
- style="?android:attr/textAppearanceLarge"
- style="?android:attr/textAppearanceMedium"
- style="?android:attr/textAppearanceSmall"
字体颜色
XML/HTML代码- android:textColor="?android:attr/textColorPrimary"
- android:textColor="?android:attr/textColorSecondary"
- android:textColor="?android:attr/textColorTertiary"
- android:textColor="?android:attr/textColorPrimaryInverse"
- android:textColor="?android:attr/textColorSecondaryInverse"
ProgressBar
XML/HTML代码- style="?android:attr/progressBarStyleHorizontal"
- style="?android:attr/progressBarStyleLarge"
- style="?android:attr/progressBarStyleSmall"
- style="?android:attr/progressBarStyleSmallTitle"
分隔符
XML/HTML代码- 横向:
android:layout_height="1dip" - android:background="?android:attr/listDivider" />
- 纵向:
android:layout_height="fill_parent" - android:background="?android:attr/listDivider" />
CheckBox
XML/HTML代码- style="?android:attr/starStyle"
类似标题栏效果的TextView
XML/HTML代码- style="?android:attr/listSeparatorTextViewStyle"
其它有用的样式
XML/HTML代码- 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"
android style
Android
android
Android
Google C++ Style Guide
list-style使用笔记
Google C++ Style Guide
div的style属性
绝色倾城之 Style Midi
CSS list-style-type 属性
div style常用属性-1
div style常用属性:一
div style常用属性 (三)
Android布局
android开发
Android camera
Android JNI
android light
Android布局
android:webView
深入Android
android animation
Hello Android
Android Overlay