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
,
字体
路漫漫其修远兮 吾将上下而求索
查看全文
相关阅读:
EDA cheat sheet
numpy.bincount()
非负矩阵分解的两种方法简析
Python列表解析和字典解析
Pandas使用groupby()时是否会保留顺序?
Reduce pandas memory size
Understanding the Transform Function in Pandas
What’s up with the Graph Laplacian
如何在github上下载单个文件夹
TCP回射服务器修订版(ubuntu 18.04)
原文地址:https://www.cnblogs.com/hudabing/p/3184027.html
最新文章
MVC4 中的Model显示设置(含显示Shared/DisplayTemplates和编辑Shared/EditorTemplates)
MVC Model数据验证
MVC 中的家常事
MVC 4中的前端渲染 @Helper指令
在ASP.NET MVC 中获取当前URL、controller、action
WCF基本知识
关于存诸过程临时表的一个小运用
let和const区别
http://yeoman.io/脚手架
javascript学习内容
热门文章
单例模式
javascript之DOM操作
Java基础知识总结(绝对经典)
HTML BOM Browser对象
Dubbo、MQ等
集合框架
JAVA学习大纲
程序开发--在现实生活中寻找可利用的资源
摘抄--老程序员的下场 程序员老了该怎么办?
Feature Engineering and Feature Selection
Copyright © 2011-2022 走看看