Android中xml使用十分广泛,这里简单汇总一下,使其更加系统化!
1.arrays.xml 定义数组
国际
国内
军事
2.colors.xml 定义颜色
#A0C8FF
#CCFF00
#000000
#FFFFFF
#FF0000
#FF0066CC
#FFF
#0000FF
#FFCBD2D8
3.dimens.xml 定义尺寸
12dp
5dp
8dp
4.drawables.xml 定义画布
#7f7f7f7f
#cf7f7f7f
#ef0a4267
#00000000
#ffd6dadc
5.strings.xml 定义字符串
Beem
Ok
Clear
6.styles.xml 定义样式
18sp
bold
sans
false
12dip
7. selector选择(按下效果) phoinix_popumenu_style.xml
8.menu 菜单
android:title="@string/chat_menu_contacts_list" android:icon="@drawable/ic_menu_friendslist" />
android:title="@string/chat_menu_change_chat" android:icon="@drawable/ic_menu_chat_dashboard" />
android:title="@string/chat_menu_close_chat" android:icon="@drawable/ic_menu_end_conversation" />
8.anim 旋转动画
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:fromDegrees="0"
android:toDegrees="+360"
android:duration="3000" />
以上这些就是android中常用的xml,至于其他的自行查阅喽~