操作技巧

安卓 Android KeyCode 键码表


键名描述键值
电话键
KEYCODE_CALL拨号键5
KEYCODE_ENDCALL挂机键6
KEYCODE_HOME按键Home3
KEYCODE_MENU菜单键82
KEYCODE_BACK返回键4
KEYCODE_SEARCH搜索键84
KEYCODE_CAMERA拍照键27
KEYCODE_FOCUS拍照对焦键80
KEYCODE_POWER电源键26
KEYCODE_NOTIFICATION通知键83
KEYCODE_MUTE话筒静音键91
KEYCODE_VOLUME_MUTE扬声器静音键164
KEYCODE_VOLUME_UP音量增加键24
KEYCODE_VOLUME_DOWN音量减小键25
控制键
KEYCODE_ENTER回车键66
KEYCODE_ESCAPEESC键111
KEYCODE_DPAD_CENTER导航键 确定键23
KEYCODE_DPAD_UP导航键 向上19
KEYCODE_DPAD_DOWN导航键 向下20
KEYCODE_DPAD_LEFT导航键 向左21
KEYCODE_DPAD_RIGHT导航键 向右22
KEYCODE_MOVE_HOME光标移动到开始键122
KEYCODE_MOVE_END光标移动到末尾键123
KEYCODE_PAGE_UP向上翻页键92
KEYCODE_PAGE_DOWN向下翻页键93
KEYCODE_DEL退格键67
KEYCODE_FORWARD_DEL删除键112
KEYCODE_INSERT插入键124
KEYCODE_TABTab键61
KEYCODE_NUM_LOCK小键盘锁143
KEYCODE_CAPS_LOCK大写锁定键115
KEYCODE_BREAKBreak/Pause键121
KEYCODE_SCROLL_LOCK滚动锁定键116
KEYCODE_ZOOM_IN放大键168
KEYCODE_ZOOM_OUT缩小键169
组合键
KEYCODE_ALT_LEFTAlt+Left
KEYCODE_ALT_RIGHTAlt+Right
KEYCODE_CTRL_LEFTControl+Left
KEYCODE_CTRL_RIGHTControl+Right
KEYCODE_SHIFT_LEFTShift+Left
KEYCODE_SHIFT_RIGHTShift+Right
基本
KEYCODE_0按键’0’7
KEYCODE_1按键’1’8
KEYCODE_2按键’2’9
KEYCODE_3按键’3’10
KEYCODE_4按键’4’11
KEYCODE_5按键’5’12
KEYCODE_6按键’6’13
KEYCODE_7按键’7’14
KEYCODE_8按键’8’15
KEYCODE_9按键’9’16
KEYCODE_A按键’A’29
KEYCODE_B按键’B’30
KEYCODE_C按键’C’31
KEYCODE_D按键’D’32
KEYCODE_E按键’E’33
KEYCODE_F按键’F’34
KEYCODE_G按键’G’35
KEYCODE_H按键’H’36
KEYCODE_I按键’I’37
KEYCODE_J按键’J’38
KEYCODE_K按键’K’39
KEYCODE_L按键’L’40
KEYCODE_M按键’M’41
KEYCODE_N按键’N’42
KEYCODE_O按键’O’43
KEYCODE_P按键’P’44
KEYCODE_Q按键’Q’45
KEYCODE_R按键’R’46
KEYCODE_S按键’S’47
KEYCODE_T按键’T’48
KEYCODE_U按键’U’49
KEYCODE_V按键’V’50
KEYCODE_W按键’W’51
KEYCODE_X按键’X’52
KEYCODE_Y按键’Y’53
KEYCODE_Z按键’Z’54
符号
KEYCODE_PLUS按键’+’
KEYCODE_MINUS按键’-’
KEYCODE_STAR按键’*’
KEYCODE_SLASH按键’/’
KEYCODE_EQUALS按键’=’
KEYCODE_AT按键’@’
KEYCODE_POUND按键’#’
KEYCODE_APOSTROPHE按键”’ (单引号)
KEYCODE_BACKSLASH按键’\’
KEYCODE_COMMA按键’,’
KEYCODE_PERIOD按键’.’
KEYCODE_LEFT_BRACKET按键’[’
KEYCODE_RIGHT_BRACKET按键’]’
KEYCODE_SEMICOLON按键’;’
KEYCODE_GRAVE按键’`’
KEYCODE_SPACE空格键
小键盘
KEYCODE_NUMPAD_0小键盘按键’0’
KEYCODE_NUMPAD_1小键盘按键’1’
KEYCODE_NUMPAD_2小键盘按键’2’
KEYCODE_NUMPAD_3小键盘按键’3’
KEYCODE_NUMPAD_4小键盘按键’4’
KEYCODE_NUMPAD_5小键盘按键’5’
KEYCODE_NUMPAD_6小键盘按键’6’
KEYCODE_NUMPAD_7小键盘按键’7’
KEYCODE_NUMPAD_8小键盘按键’8’
KEYCODE_NUMPAD_9小键盘按键’9’
KEYCODE_NUMPAD_ADD小键盘按键’+’
KEYCODE_NUMPAD_SUBTRACT小键盘按键’-’
KEYCODE_NUMPAD_MULTIPLY小键盘按键’*’
KEYCODE_NUMPAD_DIVIDE小键盘按键’/’
KEYCODE_NUMPAD_EQUALS小键盘按键’=’
KEYCODE_NUMPAD_COMMA小键盘按键’,’
KEYCODE_NUMPAD_DOT小键盘按键’.’
KEYCODE_NUMPAD_LEFT_PAREN小键盘按键’(’
KEYCODE_NUMPAD_RIGHT_PAREN小键盘按键’)’
KEYCODE_NUMPAD_ENTER小键盘按键回车
功能键
KEYCODE_F1按键F1
KEYCODE_F2按键F2
KEYCODE_F3按键F3
KEYCODE_F4按键F4
KEYCODE_F5按键F5
KEYCODE_F6按键F6
KEYCODE_F7按键F7
KEYCODE_F8按键F8
KEYCODE_F9按键F9
KEYCODE_F10按键F10
KEYCODE_F11按键F11
KEYCODE_F12按键F12
多媒体键
KEYCODE_MEDIA_PLAY多媒体键 播放
KEYCODE_MEDIA_STOP多媒体键 停止
KEYCODE_MEDIA_PAUSE多媒体键 暂停
KEYCODE_MEDIA_PLAY_PAUSE多媒体键 播放/暂停
KEYCODE_MEDIA_FAST_FORWARD多媒体键 快进
KEYCODE_MEDIA_REWIND多媒体键 快退
KEYCODE_MEDIA_NEXT多媒体键 下一首
KEYCODE_MEDIA_PREVIOUS多媒体键 上一首
KEYCODE_MEDIA_CLOSE多媒体键 关闭
KEYCODE_MEDIA_EJECT多媒体键 弹出
KEYCODE_MEDIA_RECORD多媒体键 录音
手柄按键
KEYCODE_BUTTON_1通用游戏手柄按钮 #1
KEYCODE_BUTTON_2通用游戏手柄按钮 #2
KEYCODE_BUTTON_3通用游戏手柄按钮 #3
KEYCODE_BUTTON_4通用游戏手柄按钮 #4
KEYCODE_BUTTON_5通用游戏手柄按钮 #5
KEYCODE_BUTTON_6通用游戏手柄按钮 #6
KEYCODE_BUTTON_7通用游戏手柄按钮 #7
KEYCODE_BUTTON_8通用游戏手柄按钮 #8
KEYCODE_BUTTON_9通用游戏手柄按钮 #9
KEYCODE_BUTTON_10通用游戏手柄按钮 #10
KEYCODE_BUTTON_11通用游戏手柄按钮 #11
KEYCODE_BUTTON_12通用游戏手柄按钮 #12
KEYCODE_BUTTON_13通用游戏手柄按钮 #13
KEYCODE_BUTTON_14通用游戏手柄按钮 #14
KEYCODE_BUTTON_15通用游戏手柄按钮 #15
KEYCODE_BUTTON_16通用游戏手柄按钮 #16
KEYCODE_BUTTON_A游戏手柄按钮 A
KEYCODE_BUTTON_B游戏手柄按钮 B
KEYCODE_BUTTON_C游戏手柄按钮 C
KEYCODE_BUTTON_X游戏手柄按钮 X
KEYCODE_BUTTON_Y游戏手柄按钮 Y
KEYCODE_BUTTON_Z游戏手柄按钮 Z
KEYCODE_BUTTON_L1游戏手柄按钮 L1
KEYCODE_BUTTON_L2游戏手柄按钮 L2
KEYCODE_BUTTON_R1游戏手柄按钮 R1
KEYCODE_BUTTON_R2游戏手柄按钮 R2
KEYCODE_BUTTON_MODE游戏手柄按钮 Mode
KEYCODE_BUTTON_SELECT游戏手柄按钮 Select
KEYCODE_BUTTON_START游戏手柄按钮 Start
KEYCODE_BUTTON_THUMBLLeft Thumb Button
KEYCODE_BUTTON_THUMBRRight Thumb Button
待查
KEYCODE_NUM按键Number modifier
KEYCODE_INFO按键Info
KEYCODE_APP_SWITCH按键App switch
KEYCODE_BOOKMARK按键Bookmark
KEYCODE_AVR_INPUT按键A/V Receiver input
KEYCODE_AVR_POWER按键A/V Receiver power
KEYCODE_CAPTIONS按键Toggle captions
KEYCODE_CHANNEL_DOWN按键Channel down
KEYCODE_CHANNEL_UP按键Channel up
KEYCODE_CLEAR按键Clear
KEYCODE_DVR按键DVR
KEYCODE_ENVELOPE按键Envelope special function
KEYCODE_EXPLORER按键Explorer special function
KEYCODE_FORWARD按键Forward
KEYCODE_FORWARD_DEL按键Forward Delete
KEYCODE_FUNCTION按键Function modifier
KEYCODE_GUIDE按键Guide
KEYCODE_HEADSETHOOK按键Headset Hook
KEYCODE_META_LEFT按键Left Meta modifier
KEYCODE_META_RIGHT按键Right Meta modifier
KEYCODE_PICTSYMBOLS按键Picture Symbols modifier
KEYCODE_PROG_BLUE按键Blue “programmable”
KEYCODE_PROG_GREEN按键Green “programmable”
KEYCODE_PROG_RED按键Red “programmable”
KEYCODE_PROG_YELLOW按键Yellow “programmable”
KEYCODE_SETTINGS按键Settings
KEYCODE_SOFT_LEFT按键Soft Left
KEYCODE_SOFT_RIGHT按键Soft Right
KEYCODE_STB_INPUT按键Set-top-box input
KEYCODE_STB_POWER按键Set-top-box power
KEYCODE_SWITCH_CHARSET按键Switch Charset modifier
KEYCODE_SYM按键Symbol modifier
KEYCODE_SYSRQ按键System Request / Print Screen
KEYCODE_TV按键TV
KEYCODE_TV_INPUT按键TV input
KEYCODE_TV_POWER按键TV power
KEYCODE_WINDOW按键Window
KEYCODE_UNKNOWN未知按键