1、arrays.xml 定义数组
<resources>
<string-array name="proxy_types">
<item>HTTP</item>
<item>SOCKS4</item>
<item>SOCKS5</item>
</string-array>
</resources>
2、colors.xml 定义颜色
<resources>
<color name="blue_sky">#A0C8FF</color>
<color name="vert_manu">#CCFF00</color>
<color name="black">#000000</color>
<color name="white">#FFFFFF</color>
<color name="red">#FF0000</color>
<color name="link_color">#FF0066CC</color>
<color name="simiple_button_color">#FFF</color>
<color name="blue">#0000FF</color>
<color name="grey">#FFCBD2D8</color>
</resources>
3、dimens.xml 定义尺寸
<resources>
<dimen name="bottom_tab_font_size">12dp</dimen>
<dimen name="bottom_tab_padding_up">5dp</dimen>
<dimen name="bottom_tab_padding_drawable">8dp</dimen>
</resources>
4、drawables.xml 定义画布
<resources>
<string name="app_name">Beem</string>
<string name="OkButton">Ok</string>
<string name="ClearButton">Clear</string>
</resources>
5、strings.xml 定义字符串
<resources>
<string name="app_name">Beem</string>
<string name="OkButton">Ok</string>
<string name="ClearButton">Clear</string>
</resources>
6、styles.xml 定义样式
<resources>
<style name="Label">
<item name="android:textSize">18sp</item>
<item name="android:textStyle">bold</item>
<item name="android:typeface">sans</item>
<item name="android:focusable">false</item>
<item name="android:padding">12dip</item>
</style>
</resources>
7、phoinix_popumenu_style.xml selector选择
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/phoinix_pushmail_btn_selected" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/phoinix_pushmail_btn_selected" />
<item android:state_focused="true" android:drawable="@drawable/phoinix_small_selected"/>
</selector>
8、menu 菜单
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group>
<item android:id="@+id/chat_menu_contacts_list" android:visible="true"
android:title="@string/chat_menu_contacts_list" android:icon="@drawable/ic_menu_friendslist" /> <item android:id="@+id/chat_menu_change_chat" android:visible="true"
android:title="@string/chat_menu_change_chat" android:icon="@drawable/ic_menu_chat_dashboard" />
</group> <item android:id="@+id/chat_menu_close_chat" android:visible="true"
android:title="@string/chat_menu_close_chat" android:icon="@drawable/ic_menu_end_conversation" /> </menu>
9、drawable white_background.xml 白色圆角矩形做背景
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#FFFFFF" /> <corners android:topLeftRadius="5px"
android:topRightRadius="5px" android:bottomLeftRadius="5px"
android:bottomRightRadius="5px"/> <!-- <padding android:left="10dp" android:top="10dp" android:right="10dp"
android:bottom="10dp" /> <stroke
android:dashWidth="2dp"
android:dashGap="2dp"
android:width="2dp"
android:color="#FF00ff00"></stroke> -->
</shape>
10、anim 旋转动画
<set xmlns:android="http://schemas.android.com/apk/res/android"> <rotate
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:fromDegrees="0"
android:toDegrees="+360"
android:duration="3000" /> <!-- rotate 旋转动画效果 属性:interpolator 指定一个动画的插入器,用来控制动画的速度变化 fromDegrees 属性为动画起始时物件的角度
toDegrees 属性为动画结束时物件旋转的角度,+代表顺时针
duration 属性为动画持续时间,以毫秒为单位
-->
</set>