AndroidManifest. xml & lt; uses-configuration & gt; node, androidmanifest

Source: Internet
Author: User

<Uses-configuration> node of AndroidManifest. xml, androidmanifest

References: http://developer.android.com/guide/topics/manifest/uses-configuration-element.html

<Uses-configuration> is located in the <manifest> label. Declares required hardware and software features (similar to <uses-feature>, but focuses on input ). For example, if the application Declaration requires a physical keyboard or trackball, you can avoid installing the application on devices that do not have this function.

Most applications do not use this label. Applications must be compatible with five-dimensional navigation for use by devices with special groups or without touch screens. If the application cannot be used without a touch screen, use the <uses-feature> statement.

Syntax:

<uses-configuration    android:reqFiveWayNav=["true" | "false"]    android:reqHardKeyboard=["true" | "false"]    android:reqKeyboardType=["undefined" | "nokeys" | "qwerty" | "twelvekey"]    android:reqNavigation=["undefined" | "nonav" | "dpad" | "trackball" | "wheel"]    android:reqTouchScreen=["undefined" | "notouch" | "stylus" | "finger"] />

 

Attribute:

Android: reqFiveWayNav
Whether the application requires a five-dimensional navigation. Five-dimensional buttons can control up, down, left, right, and confirm. Dpad and trackball are all five-dimensional navigation.
If the application requires a five-dimensional navigation missing, you can set this value to true without specifying the specific navigation. Otherwise, ignore this attribute and specify a specific value in reqNavigation.

Android: reqHardKeyboard
Hardware keyboard required?

Android: reqKeyboardType
If you need to specify the keyboard type (whether soft or hard), specify it here.
Undefined
Default value, not explicitly specified
Nokeys
No keyboard
Qwerty
Full keyboard
Twelvekey
12-key keyboard

Android: reqTouchScreen
Specifies the touch screen type.
Undefined
Default value, not specified
Notouch
Touch screen not required
Stylus
Pen Touch Screen
Finger
Touch screen with fingers


For AndroidManifestxml files developed by android, setting the topic style is always incorrect.

Your stylies. This style does not exist in xml. Add it as needed.
<! -- Variant of {@ link # Theme} with no title bar -->
<Style name = "Theme. NoTitleBar">
<Item name = "android: windowNoTitle"> true </item>
</Style>

After eclipse is installed, how can I enable the xml file to display the status in eclipse with the androidmanifestxml file?

Open the androidmanifest. xml file... at the bottom of the manifest application Permissions Instrumentation AndroidManifest. xml point manifest. If you put the console at the bottom, it will be on the top of the console...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.