请举例说明在
Android上使用XML指定RGB格式的颜色.语法是#rrggbb.
解决方法
您可以在XML中指定RGB格式的颜色,如下所示:
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="Test text" android:textColor="#332116" android:textSize="16sp" android:textStyle="bold" />
一般形式:
android:textColor="#332116" is "#rrggbb"
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。