Some advanced attributes of androidmanifest. xml, the main configuration file of the Android project, may be unknown to most developers. Let's take a look.
Supported screen size settings, we can display the specified allowed run in:
- <supports-screens
- android:largeScreens="true" //WVGA
- android:normalScreens="true" //HVGA
- android:smallScreens="true" //QVGA
- android:resizable="true"
- android:anyDensity="true" />
Whether or not five-digit navigation keys are supported. Generally, these keys are used in games.
- <uses-configuration android:reqFiveWayNav="true" />
Requirements for Live Wallpaper features starting with Android 2.1
- <uses-feature android:name="android.software.live_wallpaper" />
Ensure that the device contains a light sensor.
- <uses-feature android:name="android.hardware.sensor.light" />
The supported version of the OpenGL device. The value is an integer of the int type.
- <uses-feature android:openGlEsVersion="int">
Reference an external jar. Generally, we can directly use <uses-library> in non-Eclipse IDE.