zoukankan
html css js c++ java
Android 字体和颜色
对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。
java代码:
"?android:attr/textAppearanceLarge"
"?android:attr/textAppearanceMedium"
"?android:attr/textAppearanceSmall"
复制代码
使用方法为:
java代码:
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"
复制代码
字体颜色
java代码:
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"
复制代码
分隔符 横向:
java代码:
<View
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="?android:attr/listDivider" />
复制代码
纵向:
java代码:
<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"
复制代码
View
,
字体
路漫漫其修远兮 吾将上下而求索
查看全文
相关阅读:
21. Fluentd输出插件:rewrite_tag_filter用法详解
19. Fluentd输入插件:in_http用法详解
18. Fluentd输出插件:out_stdout用法详解
17. Fluentd输出插件:out_copy用法详解
15. Fluentd输入插件:in_tail用法详解
14. Fluentd输出插件:out_forward用法详解
13. Fluentd输出插件:in_forward用法详解
16. 综合使用tail、forward、copy和stdout
20. 使用Fluentd发送告警邮件
使用Fluentd进行简单流处理
原文地址:https://www.cnblogs.com/hudabing/p/3184027.html
最新文章
在 Windows 中遇到莫名奇妙的端口被占用时
Linux下在一行执行多条命令
通过 SQL 脚本进行 SQL SERVER 数据库的备份、恢复操作
使用 CSS 解决带有换行符的文本内容呈现在 HTML 中不换行的问题
linux 下 docker 版的 sqlserver 运行报错:This program requires a machine with at least 2000 megabytes of memory.
MongoDB 删除数据库
MongoDB 创建数据库
MongoDB
Linux平台安装MongoDB
MongoDB 概念解析
热门文章
Fluentd直接传输日志给MongoDB副本集 (replset)
使用Docker方式部署Mongodb多副本集(replSet)
Fluentd直接传输日志给MongoDB (standalone)
Fluent插件管理
Docker 安装 MongoDB
Docker安装kafka
Fluentd直接传输日志给kafka
Fluentd直接传输日志给Elasticsearch
td-agent的v2,v3,v4版本区别
使用Docker搭建Fluentd
Copyright © 2011-2022 走看看