没有合适的资源?快使用搜索试试~ 我知道了~
首页android_KeyEvent
android_KeyEvent
需积分: 33 15 下载量 81 浏览量
更新于2023-06-05
评论
收藏 324KB PDF 举报
介绍了androind开发中对于键盘监听类KeyEvent的成员变量定义以及API描述,并给出示例代码。
资源详情
资源评论
资源推荐
API之家----您的程序好帮! 设为 | 收藏本站
C语 JAVA Hibernate Lua HTML5 CSS3 Javascript Unity3d
PHP 淘宝 腾讯 新浪 Hadoop Lucene Nginx Memcached
mfc PLC cocos2d Win32 SDK Unix/Linux Bash Shell Oracle Mysql
Android API HTML5
新浪微博 | 腾讯微博 | java | 付宝 | 业内新闻 | php smarty
当前位置:>API/SDK参考全>android参考册>android.view>KeyEvent
KeyEvent(例,出错代码)
出处:Android API 作者:Android API 阅读:2639次
android.view
类 KeyEvent
java.lang.Object
android.view.KeyEvent
所有已实现的接:
Parcelable
public class KeyEvent
extends Object
implements Parcelable
Contains constants for key events.
嵌套类摘要
static interface KeyEvent.Callback
从接 android.os.Parcelable 继承的嵌套类/接
Parcelable.Creator<T>
字段摘要
static int ACTION_DOWN
getAction() value: the key has been pressed down.
static int ACTION_MULTIPLE
getAction() value: multiple duplicate key events have occurred in a row, or a complex string is being delivered.
static int ACTION_UP
getAction() value: the key has been released.
static Parcelable.Creator<KeyEvent> CREATOR
static int FLAG_EDITOR_ACTION
This mask is used for compatibility, to identify enter keys that are coming from an IME whose enter key has been
auto-labelled "next" or "done".
static int FLAG_FROM_SYSTEM
This mask is set if an event was known to come from a trusted part of the system.
static int FLAG_KEEP_TOUCH_MODE
This mask is set if we don't want the key event to cause us to leave touch mode.
static int FLAG_SOFT_KEYBOARD
This mask is set if the key event was generated by a software keyboard.
static int FLAG_WOKE_HERE
This mask is set if the device woke because of this key event.
static int KEYCODE_0
static int KEYCODE_1
static int KEYCODE_1
static int KEYCODE_2
static int KEYCODE_3
static int KEYCODE_4
static int KEYCODE_5
static int KEYCODE_6
static int KEYCODE_7
static int KEYCODE_8
static int KEYCODE_9
static int KEYCODE_A
static int KEYCODE_ALT_LEFT
static int KEYCODE_ALT_RIGHT
static int KEYCODE_APOSTROPHE
static int KEYCODE_AT
static int KEYCODE_B
static int KEYCODE_BACK
static int KEYCODE_BACKSLASH
static int KEYCODE_C
static int KEYCODE_CALL
static int KEYCODE_CAMERA
static int KEYCODE_CLEAR
static int KEYCODE_COMMA
static int KEYCODE_D
static int KEYCODE_DEL
static int KEYCODE_DPAD_CENTER
static int KEYCODE_DPAD_DOWN
static int KEYCODE_DPAD_LEFT
static int KEYCODE_DPAD_RIGHT
static int KEYCODE_DPAD_UP
static int KEYCODE_DPAD_UP
static int KEYCODE_E
static int KEYCODE_ENDCALL
static int KEYCODE_ENTER
static int KEYCODE_ENVELOPE
static int KEYCODE_EQUALS
static int KEYCODE_EXPLORER
static int KEYCODE_F
static int KEYCODE_FOCUS
static int KEYCODE_G
static int KEYCODE_GRAVE
static int KEYCODE_H
static int KEYCODE_HEADSETHOOK
static int KEYCODE_HOME
static int KEYCODE_I
static int KEYCODE_J
static int KEYCODE_K
static int KEYCODE_L
static int KEYCODE_LEFT_BRACKET
static int KEYCODE_M
static int KEYCODE_MEDIA_FAST_FORWARD
static int KEYCODE_MEDIA_NEXT
static int KEYCODE_MEDIA_PLAY_PAUSE
static int KEYCODE_MEDIA_PREVIOUS
static int KEYCODE_MEDIA_REWIND
static int KEYCODE_MEDIA_STOP
static int KEYCODE_MENU
static int KEYCODE_MINUS
static int KEYCODE_MUTE
static int KEYCODE_MUTE
static int KEYCODE_N
static int KEYCODE_NOTIFICATION
static int KEYCODE_NUM
static int KEYCODE_O
static int KEYCODE_P
static int KEYCODE_PERIOD
static int KEYCODE_PLUS
static int KEYCODE_POUND
static int KEYCODE_POWER
static int KEYCODE_Q
static int KEYCODE_R
static int KEYCODE_RIGHT_BRACKET
static int KEYCODE_S
static int KEYCODE_SEARCH
static int KEYCODE_SEMICOLON
static int KEYCODE_SHIFT_LEFT
static int KEYCODE_SHIFT_RIGHT
static int KEYCODE_SLASH
static int KEYCODE_SOFT_LEFT
static int KEYCODE_SOFT_RIGHT
static int KEYCODE_SPACE
static int KEYCODE_STAR
static int KEYCODE_SYM
static int KEYCODE_T
static int KEYCODE_TAB
static int KEYCODE_U
static int KEYCODE_UNKNOWN
static int KEYCODE_V
static int KEYCODE_V
static int KEYCODE_VOLUME_DOWN
static int KEYCODE_VOLUME_UP
static int KEYCODE_W
static int KEYCODE_X
static int KEYCODE_Y
static int KEYCODE_Z
static int MAX_KEYCODE
已过时。 There are now more than MAX_KEYCODE keycodes. Use getMaxKeyCode() instead.
static int META_ALT_LEFT_ON
This mask is used to check whether the left ALT meta key is pressed.
static int META_ALT_ON
This mask is used to check whether one of the ALT meta keys is pressed.
static int META_ALT_RIGHT_ON
This mask is used to check whether the right the ALT meta key is pressed.
static int META_SHIFT_LEFT_ON
This mask is used to check whether the left SHIFT meta key is pressed.
static int META_SHIFT_ON
This mask is used to check whether one of the SHIFT meta keys is pressed.
static int META_SHIFT_RIGHT_ON
This mask is used to check whether the right SHIFT meta key is pressed.
static int META_SYM_ON
This mask is used to check whether the SYM meta key is pressed.
从接 android.os.Parcelable 继承的字段
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
构造法摘要
KeyEvent(int action, int code)
Create a new key event.
KeyEvent(KeyEvent origEvent)
Make an exact copy of an existing key event.
KeyEvent(KeyEvent origEvent, long eventTime, int newRepeat)
Copy an existing key event, modifying its time and repeat count.
KeyEvent(long downTime, long eventTime, int action, int code, int repeat)
Create a new key event.
KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState)
Create a new key event.
KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int device, int scancode)
Create a new key event.
KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int device, int scancode, int flags)
Create a new key event.
KeyEvent(long time, String characters, int device, int flags)
Create a new key event for a string of characters.
法摘要
static KeyEvent changeAction(KeyEvent event, int action)
Create a new key event that is the same as the given one, but whose action is replaced with the given value.
static KeyEvent changeFlags(KeyEvent event, int flags)
Create a new key event that is the same as the given one, but whose flags are replaced with the given value.
剩余22页未读,继续阅读
baidu_24282297
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0