Android中的AndroidMainfest.xml文件

<manifest>标签定义了manifest是AndroidManifest.xml的根元素,其他标签都是定义在该元素下面,manifest标签下,仅能包含一个application元素.只要在package中实现的Activity Service  BroadcastReceiver 和ContentProvide 这4大组件信息都需要在application元素下声明.声明包括各自的实现类,各种能被处理的数据和启动位置等信息.

  application 元素的属性解释如下.

   android:allowBackuo = "true" 设置允许备份文件.

   android.icon = "mipmap/ic_launcher"定义了应用程序的目标,@mipmap/ic_launcher 是一种资源引用的方式,标志着图标是存放在/res/mipmap 目录下的资源文件,资源文件的名称为ic_launcher

   android:supportsRtl = "true" 设置应用程序可以支持RTL的布局.此属性只有在API 17 后才可以生效.

   android:theme = "@style/AppTheme" 设置应用程序的主题是APPtheme.该标签用于设定Intent过滤条件,可与其它组件的通信,实现本Activity隐式启动

   在<activity>标签下,可以定义0个或多个<intent-filter>标签,

   

posted @ 2017-02-26 15:27  Philtell  阅读(106)  评论(0编辑  收藏  举报