android之系统自带的文字外观设置及实际显示效果图

android:textAppearance

xml布局里面设置文字的外观:

如“android:textAppearance=“?android:attr/textAppearanceLargeInverse”这里引用的是系统自带的一个外观,

?表示系统是否有这种外观,否则使用默认的外观。

可设置的值如下:

textAppearanceButton/

textAppearanceInverse/

textAppearanceLarge/

textAppearanceLargeInverse/


textAppearanceMedium/

textAppearanceSmallInverse/

textAppearanceMediumInverse/ textAppearanceSmall/

或是在JAVA代码中:

textAppearance代码的设置

nameText.setTextAppearance(getApplicationContext(), R.style.BlueText);

<!-- Blue Color -->  <style name="BlueText">  <item name="android:textColor">#4871A8</item>  <item name="android:textStyle">bold</item>  </style>


更多相关文章

  1. android文字阴影效果
  2. Android有用代码片段(四)
  3. Android Vertical TextView 文字竖排
  4. [转]Android 源代码结构
  5. 文字跑马灯
  6. android代码库之textview跑马灯效果
  7. android 带文字的ImageButton
  8. Android 垂直的Slidebar 代码
  9. Android Studio 系列(二)使用Android Studio 导入整个android 源码

随机推荐

  1. Android 绘制反色文字进度条
  2. Android 获取文件目录以及文件的删除 .
  3. android 如何调用(打开)其他程序
  4. 手机游戏开发 保持屏幕常亮
  5. android中dialog封装
  6. Android小笔记之存储与读取
  7. Android 自定义ImageView,支持圆角和直角
  8. 1、android 模拟小球来回撞墙效果(游戏的
  9. android 返回键 事件
  10. android打电话、发短信实现