AndroidManifest 之 uses-configuration

来源:互联网 发布:如果马谡不失街亭 知乎 编辑:程序博客网 时间:2024/06/05 22:43

 

uses-configuration,可以指定应用程序支持的每个输入机制的组合.可以指定以下输入设备的任意组合.

(1). android:reqFiveWayNav

Whether or not the application requires a five-way navigation control — "true" if it does, and "false" if not. A five-way control is one that can move the selection up, down, right, or left, and also provides a way of invoking the current selection. It could be a D-pad (directional pad), trackball, or other device.

If an application requires a directional control, but not a control of a particular type, it can set this attribute to "true" and ignore the reqNavigation attribute. However, if it requires a particular type of directional control, it can ignore this attribute and set reqNavigation instead.

 

(2). android:reqHardKeyboard (是否支持硬件键盘)

Whether or not the application requires a hardware keyboard — "true" if it does, and "false" if not.

 

(3).android:reqKeyboardType
The type of keyboard the application requires, if any at all. This attribute does not distinguish between hardware and software keyboards. If a hardware keyboard of a certain type is required, specify the type here and also set the reqHardKeyboard attribute to "true".
 

The value must be one of the following strings:

ValueDescription"undefined"The application does not require a keyboard. (A keyboard requirement is not defined.) This is the default value."nokeys"The application does not require a keyboard."qwerty"The application requires a standard QWERTY keyboard."twelvekey"The application requires a twelve-key keypad, like those on most phones — with keys for the digits from 0 through 9 plus star (*) and pound (#) keys.

(4).android:reqNavigation

  The navigation device required by the application, if any. The value must be one of the following strings: ValueDescription"undefined"The application does not require any type of navigation control. (The navigation requirement is not defined.) This is the default value."nonav"The application does not require a navigation control."dpad"The application requires a D-pad (directional pad) for navigation."trackball"The application requires a trackball for navigation."wheel"The application requires a navigation wheel.

(5).android:reqTouchScreen

The type of touch screen the application requires, if any at all. The value must be one of the following strings: ValueDescription"undefined"The application doesn't require a touch screen. (The touch screen requirement is undefined.) This is the default value."notouch"The application doesn't require a touch screen."stylus"The application requires a touch screen that's operated with a stylus."finger"The application requires a touch screen that can be operated with a finger.
原创粉丝点击