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
,
字体
路漫漫其修远兮 吾将上下而求索
查看全文
相关阅读:
短时间内点击 同一操作,进行缓存
git项目如何查看代码提交数量
Python计数器collections.Counter用法详解
SQL Server如何生成随机数
博客园美化 | part04-添加代码复制按钮
博客园美化 | part03-添加目录
博客园美化 | part01-自定义代码块主题样式
博客园美化 | part02-添加文章markdown链接一键复制按钮
hexo | leancloud相关问题: Code 403: Access denied by API domain white list,Please check your security domain.
关于分类和标签管理问题
原文地址:https://www.cnblogs.com/hudabing/p/3184027.html
最新文章
Java中报错No enclosing instance of type caiquan is accessible. Must qualify the allocation with an enclosing instance of type caiquan (e.g. x.new A() where x is an instance of caiquan).
Java之循环输出等腰三角形
菜鸟笔记之java中方法使用
射极输出器(射极跟随器)
检波器 的原理/作用
自相关函数 互相关函数
泰勒级数的物理意义
卷积的物理意义
超实用网站 汇合
复数的物理意义
热门文章
浅谈傅里叶变换
node知识----文件I/O
js DOM
HTML&CSS(二)
yum downloadonly
Flask 异步执行耗时任务
零拷贝
Kafka的数据可靠性保证
Python Elasticsearch DSL 增删改
NTP服务器配置
Copyright © 2011-2022 走看看