字体大小 对于能够显示文字的控件(如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" 分隔符 横向: 纵向: CheckBox style="?android:attr/starStyle" 类似标题栏效果的TextView style="?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" android:background="?android:attr/activatedBackgroundIndicator"

更多相关文章

  1. Android预定义样式
  2. android 预定义样式简述
  3. android应用自定义字体
  4. android应用自定义字体
  5. android预定义样式简述
  6. Android之开源中国UI库(持续更新)
  7. android应用自定义字体
  8. Android新增AppCompatTextView自适应字体大小和文本宽度
  9. TextView 学习

随机推荐

  1. android:autoLink
  2. Android(安卓)Wifi AP软件对比
  3. android ListView的分段显示、分页显示(附
  4. 工作笔记-code
  5. Android 之 添加按钮添加声音
  6. android 源代码 获得 Open Soure Project
  7. 从J2EE转向Android的第三天-----Gallery,
  8. Android RIL源码分析(3)
  9. android 定时器 timer简单例子
  10. 【Android】HTTP请求远端String和byte[]