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
,
字体
路漫漫其修远兮 吾将上下而求索
查看全文
相关阅读:
笨办法06字符串(string)和文本
react学习之路-配制antd-mobile
react.js学习之路六
bug
react.js学习之路五
react.js学习之路四
react.js学习之路三
react.js学习之路二
react.js学习之路一
MVC,MVP 和 MVVM 的区别之处
原文地址:https://www.cnblogs.com/hudabing/p/3184027.html
最新文章
Java 单例模式:懒加载(延迟加载)和即时加载
VS 中的 lib 和 dll 的区别和使用
Scala 中的可变(var)与不可变(val)
Scala 中 object、class 与 trait 的区别
Scala 中为什么不建议用 return 关键字
Scala 字符串插值器
MySQL 中文乱码问题
Notepad++ 使用教程
MySQL8 配置远程连接
缓存与数据库一致性(二)
热门文章
java中位运算^,&,<<,>>,<<<,>>>
死磕HashMap1.8之源码解析
死磕Spring之Spring 的 Bean 生命周期
Tomcat类加载机制
Tomcat学习
Leetcode-翻转等价二叉树
CopyOnWriteArrayList
Java7和8里面HashMap+ConcurrentHashMap的扩容策略
有序的map类--TreeMap
笨办法11提问-raw_input
Copyright © 2011-2022 走看看