Android系统中自带的图标
来源:互联网 发布:淘宝切片教程 编辑:程序博客网 时间:2024/04/25 18:13
Android系统中自带了很多图标,我们的程序可以方便使用。
Android™ 1.5 android.R.drawable IconResources
http://since2006.com/android/1.5-drawables.php
Android™ 1.6 android.R.drawable IconResources
http://since2006.com/android/1.6-drawables.php
Android™ 2.1 android.R.drawable IconResources
http://since2006.com/android/2.1-drawables.php
Java Usage example:
myMenuItem.setIcon(android.R.drawable.ic_menu_save);
Resource Usage example:
android:icon="@android:drawable/ic_menu_save"
以上链接失效的话,连这个:
http://4225953-163-com.iteye.com/blog/777453
善用Android预定义样式
字体大小
对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBoxChronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。
"?android:attr/textAppearanceLarge"
"?android:attr/textAppearanceMedium"
"?android:attr/textAppearanceSmall"
使用方法为:
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"
字体颜色
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"
分隔符
横向:
android:layout_height="1dip"
android:background="?android:attr/listDivider"/>
纵向:
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"
【AndroidUI】色板
http://blog.csdn.net/feng88724/archive/2011/03/10/6236332.aspx
Android™ 1.5 android.R.drawable IconResources
http://since2006.com/android/1.5-drawables.php
Android™ 1.6 android.R.drawable IconResources
http://since2006.com/android/1.6-drawables.php
Android™ 2.1 android.R.drawable IconResources
http://since2006.com/android/2.1-drawables.php
Java Usage example:
myMenuItem.setIcon(android.R.drawable.ic_menu_save);
Resource Usage example:
android:icon="@android:drawable/ic_menu_save"
以上链接失效的话,连这个:
http://4225953-163-com.iteye.com/blog/777453
善用Android预定义样式
字体大小
对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBoxChronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。
"?android:attr/textAppearanceLarge"
"?android:attr/textAppearanceMedium"
"?android:attr/textAppearanceSmall"
使用方法为:
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"
字体颜色
android:textColor="?android:attr/textColorPrimary"
android:textColor="?android:attr/textColorSecondary"
android:textColor="?android:attr/textColorTertiary"
android:textColor="?android:attr/textColorPrimaryInverse"
android:textColor="?android:attr/textColorSecondaryInvers
ProgressBar
style="?android:attr/progressBarStyleHorizont
style="?android:attr/progressBarStyleLarge"
style="?android:attr/progressBarStyleSmall"
style="?android:attr/progressBarStyleSmallTit
分隔符
横向:
纵向:
CheckBox
style="?android:attr/starStyle"
类似标题栏效果的TextView
style="?android:attr/listSeparatorTextViewSty
其它有用的样式
android:layout_height="?android:attr/listPreferredItemHeight"
android:paddingRight="?android:attr/scrollbarSize"
style="?android:attr/windowTitleBackgroundSty
style="?android:attr/windowTitleStyle"
android:layout_height="?android:attr/windowTitleSize"
android:background="?android:attr/windowBackground"
【AndroidUI】色板
http://blog.csdn.net/feng88724/archive/2011/03/10/6236332.aspx
Java代码 <embed allowscriptaccess="never" allownetworking="internal" autostart="0" wmode="transparent" src="http://gundumw100.iteye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard= #ffffff #fffff0 #ffffe0 #ffff00 #fffafa #fffaf0#fffacd #fff8dc #fff5ee #fff0f5 #ffefd5 #ffebcd #ffe4e1 #ffe4c4 #ffe4b5 #ffdead #ffdab9 #ffd700 #ffc0cb#ffb6c1 #ffa500 #ffa07a #ff8c00 #ff7f50 #ff69b4 #ff6347 #ff4500 #ff1493 #ff00ff #ff00ff #ff0000 #fdf5e6#fafad2 #faf0e6 #faebd7 #fa8072 #f8f8ff #f5fffa #f5f5f5 #f5f5dc #f5deb3 #f4a460#f0ffff #f0fff0 #f0f8ff #f0e68c #f08080 #eee8aa #ee82ee #e9967a #e6e6fa #e0ffff #deb887 #dda0dd #dcdcdc #dc143c #db7093 #daa520 #da70d6 #d8bfd8 #d3d3d3 #d3d3d3 #d2b48c #d2691e #cd853f #cd5c5c #c71585 #c0c0c0 #bdb76b #bc8f8f #ba55d3 #b8860b #b22222 #b0e0e6 #b0c4de #afeeee #adff2f #add8e6 #a9a9a9 #a9a9a9 #a52a2a #a0522d#9932cc #98fb98 #9400d3 #9370db #90ee90 #8fbc8f #8b4513 #8b008b #8b0000 #8a2be2 #87cefa #87ceeb #808080 #808080 #808000 #800080#800000 #7fffd4 #7fff00 #7cfc00 #7b68ee #778899 #778899 #708090 #708090 #6b8e23 #6a5acd #696969 #696969 #66cdaa #6495ed #5f9ea0 #556b2f #4b0082 #48d1cc #483d8b #4682b4 #4169e1 #40e0d0 #3cb371 #32cd32 #2f4f4f #2f4f4f #2e8b57 #228b22 #20b2aa #1e90ff #191970 #00ffff #00ffff #00ff7f #00ff00 #00fa9a #00ced1 #00bfff #008b8b #008080 #008000 #006400#0000ff #0000cd #00008b #000080 #000000 " quality="high"allowscriptaccess="always" type="application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer">
- Android系统中自带的图标
- Android系统中自带的图标
- Android系统中自带的图标
- Android系统中自带的图标
- Android系统中自带的图标
- android系统中自带的图标大全
- android系统中自带的图标大全
- android系统中自带的图标大全
- android系统中自带的图标大全
- android系统中自带的图标大全
- android系统中自带的图标大全
- android系统中自带的各种图标
- android 系统自带的图标
- android 系统自带的图标集合
- android 系统自带的图标集合
- android 系统自带的图标集合
- android系统自带的图标
- Android系统自带图标
- Java API 帮助文档中英文版下载
- Android学习资料
- Java反射机制获取系统@Hide属性【…
- Git详解之九 Git内部原理
- 如何取消标题栏
- Android系统中自带的图标
- Android View.onMeasure方法
- Android 重新编译资源文件
- JQuery切换显示的效果,一句话搞定
- android联系人项目结构
- Android系统如何实现UI的自适应
- drawable(hdpi,ldpi,mdpi)
- 一条进程的栈区、堆区、数据区和代…
- Java的局部内部类以及final类型的…