展会信息港展会大全

android 字体颜色设置 android开发
来源:互联网   发布日期:2016-01-19 12:27:41   浏览:2488次  

导读:!-- 系统的颜色 -- TextView android:id=@+id tv0 android:layout_width=wrap_content android:layout_height=wrap_content an ...

<!-- 系统的颜色 -->

<TextView

android:id="@+id/tv0"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="@string/textcolor_1"

android:textColor="?android:attr/textColorPrimary" />

<TextView

android:id="@+id/tv1"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:layout_below="@id/tv0"

android:text="@string/textcolor_2"

android:textColor="?android:attr/textColorSecondary" />

<TextView

android:id="@+id/tv2"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:layout_below="@id/tv1"

android:text="@string/textcolor_3"

android:textColor="?android:attr/textColorTertiary" />

<TextView

android:id="@+id/tv3"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:layout_below="@id/tv2"

android:text="@string/textcolor_4"

android:textColor="?android:attr/textColorPrimaryInverse" />

<TextView

android:id="@+id/tv4"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:layout_below="@id/tv3"

android:text="@string/textcolor_5"

android:textColor="?android:attr/textColorSecondaryInverse" />

<!-- 使用自定义颜色 -->

<TextView

android:id="@+id/tv5"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:layout_below="@id/tv4"

android:text="@string/textcolor_6"

android:textColor="@color/cyan" />

赞助本站

人工智能实验室

相关热词: 字体 颜色 android

相关内容
AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港