文章出处:http://blog.csdn.net/shift_wwx

字体大小 对于能够显示文字的控件(如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"分隔符 横向:<View android:layout_width="fill_parent" android:layout_height="1dip" android:background="?android:attr/listDivider" />纵向:<View android:layout_width="1dip" android:layout_height="fill_parent" android:background="?android:attr/listDivider" />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"更多细节可参考SDK文档的R.attr类。

更多相关文章

  1. Android(安卓)系统字体和颜色样式
  2. Android预定义样式
  3. [AndroidTips]Android预定义样式
  4. Android(安卓)Application - No window title, Full screen, Lan
  5. Android预定义样式
  6. Android预定义样式
  7. Android禁止横屏竖屏切换
  8. Android预定义样式
  9. RecyclerView item imageview 图片宽高自适应

随机推荐

  1. php下删除一篇文章生成的多个静态页面
  2. THINKPHP 中关联查询(多表查询)
  3. 使用phpstorm进行PHP断点调试
  4. centos上安装php运行环境
  5. 招聘php开发工程师3-5人
  6. HPH+Mysql注入点利用 读取文件内容和导出
  7. 如何只从$_SERVER['HTTP_REFERER']中选择
  8. 选择* to table,其中datetime是24小时前
  9. 如何调整图像覆盖滑块
  10. PHP的文本到HTML转换器