Android ProgressBar的样式

1、Android的ProgressBar样式:

   style="?android:attr/progressBarStyleHorizontal"  长形进度条

   style="?Android:attr/progressBarStyleLarge"   超大号圆形ProgressBar

    style="?android:attr/progressBarStyleSmall" 小号圆形ProgressBar

   style="?android:attr/progressBarStyleSmallTitle" 标题型圆形ProgressBar


2、对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等),有时需要控制字体的大小。android平台定义了三种字体大小。

    "?android:attr/textAppearanceLarge"

    "?android:attr/textAppearanceMedium"

    "?android:attr/textAppearanceSmall"

   使用方法为:

    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"


3、字体大小
对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。
"?android:attr/textAppearanceLarge"
"?android:attr/textAppearanceMedium"
"?android:attr/textAppearanceSmall"
使用方法为:
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"
字体颜色
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
style="?android:attr/progressBarStyleHorizontal" 
style="?android:attr/progressBarStyleLarge" 
style="?android:attr/progressBarStyleSmall" 
style="?android:attr/progressBarStyleSmallTitle"

展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读