StupidBeauty
Read times:1420Posted at: - no title specified

安卓19开发文档翻译:键盘,Keyboard

继承  Object

类概述

载入一个以XML 描述的键盘,并且将各个键的属性储存起来。一个键盘由多行按键组成。

键盘的布局文件是一个XML 文件,其中的代码类似以下示例:

<Keyboard

android:keyWidth = "%10p"

android:keyHeight = "50px"

android:horizontalGap = "2px"

android:verticalGap = "2px" >

<Row android:keyWidth = "32px" >

<Key android:keyLabel = "A" />

...

</Row>

...

</Keyboard>

常量

public static final int KEYCODE_ALT

自此版本开始引入 应用编程接口级别3

常量值: -6 (0xfffffffa)

public static final int KEYCODE_CANCEL

自此版本开始引入 应用编程接口级别3

常量值: -3 (0xfffffffd)

public static final int KEYCODE_DELETE

自此版本开始引入 应用编程接口级别3

常量值: -5 (0xfffffffb)

public static final int KEYCODE_DONE

自此版本开始引入 应用编程接口级别3

常量值: -4 (0xfffffffc)

public static final int KEYCODE_MODE_CHANGE

自此版本开始引入 应用编程接口级别3

常量值: -2 (0xfffffffe)

public static final int KEYCODE_SHIFT

自此版本开始引入 应用编程接口级别3

常量值: -1 (0xffffffff)

未知美人

Your opinions

Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands