现在的位置: 首页 > 综合 > 正文

androidmanifest文件参数说明

2018年06月09日 ⁄ 综合 ⁄ 共 773字 ⁄ 字号 评论关闭

1、<uses-sdk  android:minSdkVersion="8"    android:targetSdkVersion="17" />

     minSdkVersion:最小版本,指明在这个版本以上的设备可以安装运行此应用。

    targetSdkVersion:目标版本,指明如果targetSdkVersion与目标设备的API版本相同时,运行效率可能会高一些。

    target=android-10:在工程属性文件里project.properties指明的编译版本:指明该工程用这个版本编译。

2、<application  android:allowBackup="true"        android:icon="@drawable/ic_launcher"        android:label="@string/app_name"  android:theme="@style/AppTheme" >

   allowBackup:是否允许备份应用的数据,默认是true,当备份数据的时候,它的数据会被备份下来。如果设为false,那么绝对不会备份应用的数据,即使是备份整个系统。

   android:icon:程序的图标。

  android:label:程序的标签文字,在图标的下面显示的标题。

  android:theme:应用的风格

3、android:screenOrientation:屏幕显示方向。

  android:screenOrientation=”landscape”:屏幕横向显示即横屏

  android:screenOrientation="portrait":屏幕竖向显示即竖屏

4、android:configChanges:当里面配置的参数相关的设备的状态改变后,不调用OnCreat函数,而调用配置改变函数

抱歉!评论已关闭.