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>

android 各种xml的作用的更多相关文章

  1. Android--应用开发3(Android layout XML属性)

    Android layout XML属性 转载:http://www.cnblogs.com/playing/archive/2011/04/07/2008620.html Layout对于迅速的搭建 ...

  2. 【Android Studio安装部署系列】四、Android SDK目录和作用分析

    版权声明:本文为HaiyuKing原创文章,转载请注明出处! 概述 Android SDk Tool软件开发工具包(software development kit).被软件开发工程师用于为特定的软件 ...

  3. android public.xml 用法

    一.android的pulibc.xml文件 如果你用 apktoool 反编译过 apk 就知道,反编译后res/values 下有一个 public.xml 文件,内容如图   这个东西有什么用呢 ...

  4. Android 使用xml序列化器生成xml文件

    在<Android 生成xml文件>一文中使用流的形式写入xml格式文件,但是存在一定的问题,那就是在短信内容中不能出现<>之类的括号,本文使用xml序列化器来解决 xml序列 ...

  5. android操作XML的几种方式(转)

    XML作为一种业界公认的数据交换格式,在各个平台与语言之上,都有广泛使用和实现.其标准型,可靠性,安全性......毋庸置疑.在android平台上,我们要想实现数据存储和数据交换,经常会使用到xml ...

  6. Android解析XML(PULL方式)

    PULL 的工作原理: XML pull提供了开始元素和结束元素.当某个元素开始时,可以调用parser.nextText从XML文档中提取所有字符数据.当解析到一个文档结束时,自动生成EndDocu ...

  7. Android中XML解析

    package com.example.thebroadproject; public class Book { private int id; private String name; privat ...

  8. android解析XML总结(SAX、Pull、Dom三种方式) <转载>

    android解析XML总结(SAX.Pull.Dom三种方式) http://www.cnblogs.com/JerryWang1991/archive/2012/02/24/2365507.htm ...

  9. Android实现XML解析技术

    转载:Android实现XML解析技术 本文介绍在Android平台中实现对XML的三种解析方式. XML在各种开发中都广泛应用,Android也不例外.作为承载数据的一个重要角色,如何读写XML成为 ...

随机推荐

  1. QT5: QApplication, no such file or directory

    In QT5, when I use this: #include<QApplication>, QT tells :no such file or directory, even tho ...

  2. POJ 1458-Common Subsequence(线性dp/LCS)

    Common Subsequence Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 39009   Accepted: 15 ...

  3. jquery中prop()方法和attr()方法的区别(转)

    jquery1.6中新加了一个方法prop(),一直没用过它,官方解释只有一句话:获取在匹配的元素集中的第一个元素的属性值. 官方例举的例子感觉和attr()差不多,也不知道有什么区别,既然有了pro ...

  4. MySQL批量更新死锁案例分析--转载

    问题描述 在做项目的过程中,由于写SQL太过随意,一不小心就抛了一个死锁异常,如下: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackE ...

  5. HTML5和CSS3实例教程[总结一]

    关于onclick的行为与内容分离 通过链接触发弹出窗口方式 (不推荐使用此方法!!!) <a href='#' onclcik = "window.open('holiday_pay ...

  6. WPF 打开文件 打开路径对话框

    WPF调用WinForm中的 OpenFileDialog 和 FolderBrowserDialog 来实现响应的功能 对应的引用程序集: using System.Windows.Forms; O ...

  7. .net中Web.config文件的基本原理及相关设置

    11.7  使用web.config配置文件 Web配置文件web.config是Web 应用程序的数据设定文件,它是一份 XML 文件,内含 Web 应用程序相关设定的 XML 标记,可以用来简化  ...

  8. 查询数据库返回List<Entity>问题

    如果判断所返回的List<Entity>是否为空不能用 list!=null,因为如果查询数据为空则会返回[],当与null判断的时候会判断为有数据,此时判断条件应该写成list.size ...

  9. deep learning in nlp 资料文献

    Deep Learning for Natural Language Processing (without Magic) http://nlp.stanford.edu/courses/NAACL2 ...

  10. BOM和DOM的联系和区别

    BOM中的对象 Window对象: 是整个BOM的核心,所有对象和集合都以某种方式回接到window对象.Window对象表示整个浏览器窗口,但不必表示其中包含的内容. Document对象: 实际上 ...