Android 键盘键名和键值列表
Android手机常用的三个键,home键,back键及menu键。
Android⼿机常⽤的三个键,home键,back键及menu键。
public class BackKeyTest extends Activity{/** Called when the activity is first created. */@Overridepublic void onCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);setContentView(yout.main);}@Overridepublic boolean onKeyDown(int keyCode, KeyEvent event){if (keyCode == KeyEvent.KEYCODE_BACK ){// 创建退出对话框AlertDialog isExit = new AlertDialog.Builder(this).create();// 设置对话框标题isExit.setTitle("系统提⽰");// 设置对话框消息isExit.setMessage("确定要退出吗");// 添加选择按钮并注册监听isExit.setButton("确定", listener);isExit.setButton2("取消", listener);// 显⽰对话框isExit.show();}return false;}/**监听对话框⾥⾯的button点击事件*/DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener(){public void onClick(DialogInterface dialog, int which){switch (which){case AlertDialog.BUTTON_POSITIVE:// "确认"按钮退出程序finish();break;case AlertDialog.BUTTON_NEGATIVE:// "取消"第⼆个按钮取消对话框break;default:break;}}};}⼩结:Android⼿机常⽤的三个键,home键,back键及menu键。
安卓键盘键值对照表
安卓键盘键值对照表Android 键盘Key值对照表键码常数值描述vbKeyLButton 1 鼠标左键vbKeyRButton 2 鼠标右键vbKeyCancel 3 CANCEL 键vbKeyMButton 4 鼠标中键vbKeyBack 8 BACKSPACE 键vbKeyTab 9 TAB 键vbKeyClear 12 CLEAR 键vbKeyReturn 13 ENTER 键vbKeyShift 16 SHIFT 键vbKeyControl 17 CTRL 键vbKeyMenu 18 菜单键vbKeyPause 19 PAUSE 键vbKeyCapital 20 CAPS LOCK 键vbKeyEscape 27 ESC 键vbKeySpace 32 SPACEBAR 键vbKeyPageUp 33 PAGEUP 键vbKeyPageDown 34 PAGEDOWN 键vbKeyEnd 35 END 键vbKeyHome 36 HOME 键vbKeyLeft 37 LEFT ARROW 键vbKeyUp 38 UP ARROW 键vbKeyRight 39 RIGHT ARROW 键vbKeyDown 40 DOWN ARROW 键vbKeySelect 41 SELECT 键vbKeyPrint 42 PRINT SCREEN 键vbKeyExecute 43 EXECUTE 键vbKeySnapshot 44 SNAP SHOT 键vbKeyInser 45 INS 键vbKeyDelete 46 DEL 键vbKeyHelp 47 HELP 键vbKeyNumlock 144 NUM LOCK 键A 键到Z 键与其ASCII 码的相应值'A ' 到'Z ' 是一致的常数值描述vbKeyA 65 A 键vbKeyB 66 B 键vbKeyC 67 C 键vbKeyD 68 D 键vbKeyE 69 E 键vbKeyF 70 F 键vbKeyG 71 G 键vbKeyH 72 H 键vbKeyI 73 I 键vbKeyJ 74 J 键vbKeyK 75 K 键vbKeyL 76 L 键vbKeyM 77 M 键vbKeyN 78 N 键vbKeyO 79 O 键vbKeyP 80 P 键vbKeyQ 81 Q 键vbKeyR 82 R 键vbKeyS 83 S 键vbKeyT 84 T 键vbKeyU 85 U 键vbKeyV 86 V 键vbKeyW 87 W 键vbKeyX 88 X 键vbKeyY 89 Y 键vbKeyZ 90 Z 键0 键到9 键与其ASCII 码的相应值'0 ' 到'9 ' 是一致的常数值描述vbKey0 48 0 键vbKey1 49 1 键vbKey2 50 2 键vbKey3 51 3 键vbKey4 52 4 键vbKey5 53 5 键vbKey6 54 6 键vbKey7 55 7 键vbKey8 56 8 键vbKey9 57 9 键数字小键盘上的键常数值描述vbKeyNumpad0 96 0 键vbKeyNumpad1 97 1 键vbKeyNumpad2 98 2 键vbKeyNumpad3 99 3 键vbKeyNumpad4 100 4 键vbKeyNumpad5 101 5 键vbKeyNumpad6 102 6 键vbKeyNumpad7 103 7 键vbKeyNumpad8 104 8 键vbKeyNumpad9 105 9 键vbKeyMultiply 106 乘号(*) 键vbKeyAdd 107 加号(+) 键vbKeySeparator 108 ENTER 键(在数字小键盘上)vbKeySubtract 109 减号(-) 键vbKeyDecimal 110 小数点(.) 键vbKeyDivide 111 除号(/) 键功能键常数值描述vbKeyF1 112 F1 键vbKeyF2 113 F2 键vbKeyF3 114 F3 键vbKeyF4 115 F4 键vbKeyF5 116 F5 键vbKeyF6 117 F6 键vbKeyF7 118 F7 键vbKeyF8 119 F8 键vbKeyF9 120 F9 键vbKeyF10 121 F10 键vbKeyF11 122 F11 键vbKeyF12 123 F12 键vbKeyF13 124 F13 键vbKeyF14 125 F14 键vbKeyF15 126 F15 键vbKeyF16 127 F16 键。
android快捷键总结
存盘 Ctrl+s(肯定知道)注释代码 Ctrl+/取消注释 Ctrl+\(Eclipse3已经都合并到Ctrl+/了)代码辅助 Alt+/快速修复 Ctrl+1代码格式化 Ctrl+Shift+f整理导入 Ctrl+Shift+o切换窗口 Ctrl+f6<可改为ctrl+tab方便>ctrl+shift+M 导入未引用的包ctrl+w 关闭单个窗口F3 跳转到类、变量的声明F11 运行上次程序Ctrl + F11 调试上次程序Alt + 回下一个编辑点ctrl+shift+T 查找工程中的类最经典的快捷键Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行Ctrl+Alt+↓复制当前行到下一行(复制增加)Ctrl+Alt+↑复制当前行到上一行(复制增加)Alt+↓当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑当前行和上面一行交互位置(同上)Alt+←前一个编辑的页面Alt+→下一个编辑的页面(当然是针对上面那条来说了)Alt+Enter 显示当前选择资源(工程,or 文件 or文件)的属性Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后)Shift+Ctrl+Enter 在当前行插入空行(原理同上条)Ctrl+Q 定位到最后编辑的地方Ctrl+L 定位在某行 (对于程序超过100的人就有福音了)Ctrl+M 最大化当前的Edit或View (再按则反之)Ctrl+/ 注释当前行,再按则取消注释Ctrl+O 快速显示 OutLineCtrl+T 快速显示当前类的继承结构Ctrl+W 关闭当前EditerCtrl+K 参照选中的Word快速定位到下一个Ctrl+E 快速显示当前Editer的下拉列表(如果当前页面没有显示的用黑体表示)Ctrl+/(小键盘) 折叠当前类中的所有代码Ctrl+×(小键盘) 展开当前类中的所有代码Ctrl+Space 代码助手完成一些代码的插入(但一般和输入法有冲突,可以修改输入法的热键,也可以暂用Alt+/来代替)Ctrl+Shift+E 显示管理当前打开的所有的View的管理器(可以选择关闭,激活等操作)Ctrl+J 正向增量查找(按下Ctrl+J后,你所输入的每个字母编辑器都提供快速匹配定位到某个单词,如果没有,则在stutes line中显示没有找到了,查一个单词时,特别实用,这个功能Idea两年前就有了)Ctrl+Shift+J 反向增量查找(和上条相同,只不过是从后往前查)Ctrl+Shift+F4 关闭所有打开的EditerCtrl+Shift+X 把当前选中的文本全部变为大写Ctrl+Shift+Y 把当前选中的文本全部变为小写Ctrl+Shift+F 格式化当前代码Ctrl+Shift+P 定位到对于的匹配符(譬如{}) (从前面定位后面时,光标要在匹配符里面,后面到前面,则反之)下面的快捷键是重构里面常用的,本人就自己喜欢且常用的整理一下(注:一般重构的快捷键都是Alt+Shift开头的了)Alt+Shift+R 重命名 (是我自己最爱用的一个了,尤其是变量和类的Rename,比手工方法能节省很多劳动力)Alt+Shift+M 抽取方法 (这是重构里面最常用的方法之一了,尤其是对一大堆泥团代码有用)Alt+Shift+C 修改函数结构(比较实用,有N个函数调用了这个方法,修改一次搞定)Alt+Shift+L 抽取本地变量( 可以直接把一些魔法数字和字符串抽取成一个变量,尤其是多处调用的时候)Alt+Shift+F 把Class中的local变量变为field变量 (比较实用的功能)Alt+Shift+I 合并变量(可能这样说有点不妥Inline)Alt+Shift+V 移动函数和变量(不怎么常用)Alt+Shift+Z 重构的后悔药(Undo)Alt+左箭头,右箭头以在编辑窗口切换标签Alt+上下箭头, 以自动选择鼠标所在行,并将其上下移动Ctrl+f6 可以弹出菜单,上面列出可以切换的编辑窗口,这样不用鼠标也可切换Ctrl+f7 可以在视图之间切换 ,如编辑视图,输出视图,工程视图Ctrl+f8 可以在不同的观察视图中切换,就是在java视图,调试视图,等之间切换Ctrl+m 可以在最大化当前窗口和还原当前窗口之间切换Ctrl+e 弹出输入窗口,可以输入你想要编辑的代码窗口,和Ctrl+f6的功能相同,只不过一个是选择的方式,一个是输入的方式,切换窗口Ctrl+T 可以直接显示光标所在内容的类图,可以直接输入,并跳到输入内容部分按住Ctrl键,然后鼠标指向变量名,方法名,类名在源代码中快速跳转Ctrl + F11 快速执行程序Ctrl+Shift+F 程序代码自动排版Ctrl+Shift+O 自动加入引用。
AndroidStudio快捷键大全
AndroidStudio快捷键⼤全Android Studio快捷键⼤全1. Ctrl+D:集合了复制和粘贴两个操作,如果有选中的部分就复制选中的部分,并在选中部分的后⾯粘贴出来,如果没有选中的部分,就复制光标所在的⾏,并在此⾏的下⾯粘贴出来。
2. Ctrl+空格:输⼊代码时按此组合键会列出与之相匹配的类、⽅法名、成员变量等,起智能提⽰的作⽤。
在编辑XML⽂件⼀样有⽤。
3. Ctrl+向下箭头或Ctrl+向上箭头:在有⾃动匹配下拉列表时,此快捷键会⾃动关掉下拉列表,光标移动到下/上⼀⾏。
4. ⾃动匹配下拉列表的排列⽅式的切换:在⾃动匹配下拉列表的右下⾓有个“π”图标,点击后可选是按:实⽤性、字母两种排列⽅式。
5. Ctrl+斜杠、Ctrl+shift+斜杠:Ctrl+斜杠:注释或取消注释当前⾏或选中的代码块,以双斜杠的⽅式即“//”Ctrl+shift+斜杠:注释或取消注释选中的代码块,以“/*……*/”⽅式注释,6. Ctrl+shift+Enter:⾃动匹配相对应的语法结构,⽐如if,do-while,try-catch等结构。
7. Ctrl+F:搜索8. Ctrl+句点:在⾃动匹配下拉列表中,选中第⼀个item9. 感叹号:在⾃动匹配下拉列表中,上下键选中⼀个返回结果为boolean的item,按感叹号会⾃动取反:10. Ctrl+Enter :在⾃动匹配下拉列表中,在没有选中的item时,默认选中第⼀个item。
11. Ctrl+shift+A:快速查找android studio中的菜单。
12. Ctrl+N:可以快速打开类13. Ctrl+B:直接跳转到类、⽅法、成员变量定义的地⽅,与Ctrl+⿏标左键效果⼀样14. Ctrl+Alt+B:查询有哪些类实现了光标所在的接⼝15. Ctrl+Alt+shift+I:检测代码,⽐如检测⼀些定义了,但没有使⽤过的变量或⽅法。
检测的⽬的是为了提⾼代码效率。
keyevent 键值表
`KeyEvent` 是Android 中用于表示按键事件的类。
每个按键都有一个唯一的键码(KeyCode),而`KeyEvent` 就用于描述这些按键事件的信息。
以下是一些常见的Android 键码及其对应的键值表:1. **数字键:**- `KeyEvent.KEYCODE_0` 到`KeyEvent.KEYCODE_9`2. **字母键:**- `KeyEvent.KEYCODE_A` 到`KeyEvent.KEYCODE_Z`3. **功能键:**- `KeyEvent.KEYCODE_F1` 到`KeyEvent.KEYCODE_F12`4. **控制键:**- `KeyEvent.KEYCODE_ENTER` - 回车键- `KeyEvent.KEYCODE_DEL` - 删除键- `KeyEvent.KEYCODE_ESCAPE` - 换码键(Esc键)- `KeyEvent.KEYCODE_TAB` - Tab键- `KeyEvent.KEYCODE_SPACE` - 空格键5. **方向键:**- `KeyEvent.KEYCODE_DPAD_UP` - 方向上键- `KeyEvent.KEYCODE_DPAD_DOWN` - 方向下键- `KeyEvent.KEYCODE_DPAD_LEFT` - 方向左键- `KeyEvent.KEYCODE_DPAD_RIGHT` - 方向右键6. **功能键:**- `KeyEvent.KEYCODE_HOME` - Home键- `KeyEvent.KEYCODE_BACK` - 返回键- `KeyEvent.KEYCODE_MENU` - 菜单键- `KeyEvent.KEYCODE_POWER` - 电源键7. **音量键:**- `KeyEvent.KEYCODE_VOLUME_UP` - 音量增加键- `KeyEvent.KEYCODE_VOLUME_DOWN` - 音量减小键8. **其他常见键:**- `KeyEvent.KEYCODE_MEDIA_PLAY` - 媒体播放键- `KeyEvent.KEYCODE_MEDIA_STOP` - 媒体停止键- `KeyEvent.KEYCODE_CAMERA` - 相机键- `KeyEvent.KEYCODE_CALL` - 拨号键- `KeyEvent.KEYCODE_ENDCALL` - 挂机键这只是一小部分可能用到的键码。
android键值
ConstantsgetAction() value: the key has been pressed down.getAction() value: multiple duplicate key events have occurred in a row, or a complex string is being delivered.getAction() value: the key has been released.When associated with up key events, this indicates that the key press has been canceled.Set when a key event has FLAG_CANCELED set because a long press action was executed while it was down.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".Set when a key event has been synthesized to implement default behavior for an event that the application did not handle.This mask is set if an event was known to come from a trusted part of the system.This mask is set if we don't want the key event to cause us to leave touch mode.This flag is set for the first key repeat that occurs after the long press timeout.This mask is set if the key event was generated by a software keyboard.Set for ACTION_UP when this event's key code is still being tracked from its initial down.This key event was generated by a virtual (on-screen) hard key area.This mask is set if the device woke because of this key event.Key code constant: '0' key.Key code constant: '1' key.Key code constant: '2' key.Key code constant: '3' key.Key code constant: 3D Mode key.Key code constant: '4' key.Key code constant: '5' key.Key code constant: '6' key.Key code constant: '7' key.Key code constant: '8' key.Key code constant: '9' key.Key code constant: 'A' key.Key code constant: Left Alt modifier key.Key code constant: Right Alt modifier key.Key code constant: ''' (apostrophe) key.Key code constant: App switch key.Key code constant: Assist key.Key code constant: '@' key.Key code constant: A/V Receiver input key.Key code constant: A/V Receiver power key.Key code constant: 'B' key.Key code constant: Back key.Key code constant: '\' key.Key code constant: Bookmark key.Key code constant: Break / Pause key.Key code constant: Generic Game Pad Button #1.Key code constant: Generic Game Pad Button #10.Key code constant: Generic Game Pad Button #11.Key code constant: Generic Game Pad Button #12.Key code constant: Generic Game Pad Button #13.Key code constant: Generic Game Pad Button #14.Key code constant: Generic Game Pad Button #15.Key code constant: Generic Game Pad Button #16.Key code constant: Generic Game Pad Button #2. Key code constant: Generic Game Pad Button #3. Key code constant: Generic Game Pad Button #4. Key code constant: Generic Game Pad Button #5. Key code constant: Generic Game Pad Button #6. Key code constant: Generic Game Pad Button #7. Key code constant: Generic Game Pad Button #8. Key code constant: Generic Game Pad Button #9. Key code constant: A Button key.Key code constant: B Button key.Key code constant: C Button key.Key code constant: L1 Button key.Key code constant: L2 Button key.Key code constant: Mode Button key.Key code constant: R1 Button key.Key code constant: R2 Button key.Key code constant: Select Button key.Key code constant: Start Button key.Key code constant: Left Thumb Button key.Key code constant: Right Thumb Button key.Key code constant: X Button key.Key code constant: Y Button key.Key code constant: Z Button key.Key code constant: 'C' key.Key code constant: Calculator special function key. Key code constant: Calendar special function key. Key code constant: Call key.Key code constant: Camera key.Key code constant: Caps Lock key.Key code constant: Toggle captions key.Key code constant: Channel down key.Key code constant: Channel up key.Key code constant: Clear key.Key code constant: ',' key.Key code constant: Contacts special function key. Key code constant: Left Control modifier key.Key code constant: Right Control modifier key. Key code constant: 'D' key.Key code constant: Backspace key.Key code constant: Directional Pad Center key. Key code constant: Directional Pad Down key. Key code constant: Directional Pad Left key.Key code constant: Directional Pad Right key.Key code constant: Directional Pad Up key.Key code constant: DVR key.Key code constant: 'E' key.Key code constant: Japanese alphanumeric key. Key code constant: End Call key.Key code constant: Enter key.Key code constant: Envelope special function key. Key code constant: '=' key.Key code constant: Escape key.Key code constant: Explorer special function key.Key code constant: 'F' key.Key code constant: F1 key.Key code constant: F10 key.Key code constant: F11 key.Key code constant: F12 key.Key code constant: F2 key.Key code constant: F3 key.Key code constant: F4 key.Key code constant: F5 key.Key code constant: F6 key.Key code constant: F7 key.Key code constant: F8 key.Key code constant: F9 key.Key code constant: Camera Focus key.Key code constant: Forward key.Key code constant: Forward Delete key.Key code constant: Function modifier key.Key code constant: 'G' key.Key code constant: '`' (backtick) key.Key code constant: Guide key.Key code constant: 'H' key.Key code constant: Headset Hook key.Key code constant: Japanese conversion key.Key code constant: Home key.Key code constant: 'I' key.Key code constant: Info key.Key code constant: Insert key.Key code constant: 'J' key.Key code constant: 'K' key.Key code constant: Japanese kana key.Key code constant: Japanese katakana / hiragana key. Key code constant: 'L' key.Key code constant: Language Switch key.Key code constant: '[' key.Key code constant: 'M' key.Key code constant: Manner Mode key.Key code constant: Close media key.Key code constant: Eject media key.Key code constant: Fast Forward media key.Key code constant: Play Next media key.Key code constant: Pause media key.Key code constant: Play media key.Key code constant: Play/Pause media key.Key code constant: Play Previous media key.Key code constant: Record media key.Key code constant: Rewind media key.Key code constant: Stop media key.Key code constant: Menu key.Key code constant: Left Meta modifier key.Key code constant: Right Meta modifier key.Key code constant: '-'.Key code constant: End Movement key.Key code constant: Home Movement key.Key code constant: Japanese non-conversion key.Key code constant: Music special function key.Key code constant: Mute key.Key code constant: 'N' key.Key code constant: Notification key.Key code constant: Number modifier key.Key code constant: Numeric keypad '0' key.Key code constant: Numeric keypad '1' key.Key code constant: Numeric keypad '2' key.Key code constant: Numeric keypad '3' key.Key code constant: Numeric keypad '4' key.Key code constant: Numeric keypad '5' key.Key code constant: Numeric keypad '6' key.Key code constant: Numeric keypad '7' key.Key code constant: Numeric keypad '8' key.Key code constant: Numeric keypad '9' key.Key code constant: Numeric keypad '+' key (for addition).Key code constant: Numeric keypad ',' key (for decimals or digit grouping). Key code constant: Numeric keypad '/' key (for division).Key code constant: Numeric keypad '.' key (for decimals or digit grouping). Key code constant: Numeric keypad Enter key.Key code constant: Numeric keypad '=' key.Key code constant: Numeric keypad '(' key.Key code constant: Numeric keypad '*' key (for multiplication).Key code constant: Numeric keypad ')' key.Key code constant: Numeric keypad '-' key (for subtraction).Key code constant: Num Lock key.Key code constant: 'O' key.Key code constant: 'P' key.Key code constant: Page Down key.Key code constant: Page Up key.Key code constant: '.' key.Key code constant: Picture Symbols modifier key.Key code constant: '+' key.Key code constant: '#' key.Key code constant: Power key.Key code constant: Blue "programmable" key.Key code constant: Green "programmable" key.Key code constant: Red "programmable" key.Key code constant: Yellow "programmable" key.Key code constant: 'Q' key.Key code constant: 'R' key.Key code constant: ']' key.Key code constant: Japanese Ro key.Key code constant: 'S' key.Key code constant: Scroll Lock key.Key code constant: Search key.Key code constant: ';' key.Key code constant: Settings key.Key code constant: Left Shift modifier key.Key code constant: Right Shift modifier key.Key code constant: '/' key.Key code constant: Soft Left key.Key code constant: Soft Right key.Key code constant: Space key.Key code constant: '*' key.Key code constant: Set-top-box input key.Key code constant: Set-top-box power key.Key code constant: Switch Charset modifier key.Key code constant: Symbol modifier key.Key code constant: System Request / Print Screen key.Key code constant: 'T' key.Key code constant: Tab key.Key code constant: TV key.Key code constant: TV input key.Key code constant: TV power key.Key code constant: 'U' key.Key code constant: Unknown key code.Key code constant: 'V' key.Key code constant: Volume Down key.Key code constant: Volume Mute key.Key code constant: Volume Up key.Key code constant: 'W' key.Key code constant: Window key.Key code constant: 'X' key.Key code constant: 'Y' key.Key code constant: Japanese Yen key.Key code constant: 'Z' key.Key code constant: Japanese full-width / half-width key.Key code constant: Zoom in key.Key code constant: Zoom out key.This constant was deprecated in API level 3. There are now more than MAX_KEYCODE keycodes. Use getMaxKeyCode() instead.This mask is used to check whether the left ALT meta key is pressed.This mask is a combination of META_ALT_ON, META_ALT_LEFT_ON and META_ALT_RIGHT_ON. This mask is used to check whether one of the ALT meta keys is pressed.This mask is used to check whether the right the ALT meta key is pressed.This mask is used to check whether the CAPS LOCK meta key is on.This mask is used to check whether the left CTRL meta key is pressed.This mask is a combination of META_CTRL_ON, META_CTRL_LEFT_ON andMETA_CTRL_RIGHT_ON.This mask is used to check whether one of the CTRL meta keys is pressed.This mask is used to check whether the right CTRL meta key is pressed.This mask is used to check whether the FUNCTION meta key is pressed.This mask is used to check whether the left META meta key is pressed.This mask is a combination of META_META_ON, META_META_LEFT_ON and META_META_RIGHT_ON.This mask is used to check whether one of the META meta keys is pressed. This mask is used to check whether the right META meta key is pressed.This mask is used to check whether the NUM LOCK meta key is on.This mask is used to check whether the SCROLL LOCK meta key is on.This mask is used to check whether the left SHIFT meta key is pressed.This mask is a combination of META_SHIFT_ON, META_SHIFT_LEFT_ON and META_SHIFT_RIGHT_ON.This mask is used to check whether one of the SHIFT meta keys is pressed. This mask is used to check whether the right SHIFT meta key is pressed.This mask is used to check whether the SYM meta key is pressed.。
android studio 操作
Android Studio快捷键提示Ctrl+P方法参数提示Ctrl+空格代码提示Ctrl+Shift+Space在很多时候都能够给出Smart提示Ctrl+Alt+Space类名或接口名提示查看Alt+1快速打开或隐藏工程面板Ctrl+H查看类结构图Ctrl+F12查看当前文件的结构Ctrl+Q查看注释文档(JavaDoc)Alt+Q查看当前方法的声明Ctrl+W选中单词继而语句继而行继而函数查找Alt + F1查找代码所在位置Ctrl + F7查找当前元素在当前文件中的引用,然后按F3可以选择Alt + F3快速查找Ctrl + Shift + F7可以高亮当前元素在当前文件中的使用Ctrl + Shift+N查找文件Ctrl + Shift+Alt+N查找类中的方法或变量Ctrl + B查找打开光标处的类或方法Ctrl + N快速查找类Ctrl + F查找文本Ctrl+Shift+Alt+N可以快速打开符号快速打开类/文件/符号时,可以使用通配符,也可以使用缩写Ctrl+Alt+Up /Ctrl+Alt+Down可以快速跳转搜索结果修复Shift+F6重构-重命名Ctrl+X删除行Ctrl+D复制行Ctrl+/ 或 Ctrl+Shift+/ 注释(// 或者/*...*/ )Alt+Insert可以生成构造器/Getter/Setter等Ctrl+Alt+L格式化代码Ctrl+R替换文本Alt+Enter导入包,自动修正Ctrl+Alt+O优化导入的类和包Ctrl+J自动代码Ctrl+Shift+Space自动补全代码Ctrl+Alt+Space类名自动完成Ctrl+Shift+Insert可以选择剪贴板内容并插入Ctrl+Shift+J可以整合两行Ctrl+Alt+T可以把代码包在一块内,例如try/catchCtrl+Alt+V可以引入变量。
例如把括号内的SQL赋成一个变量Alt+F8计算变量值Ctrl+O可以选择父类的方法进行重写最近相关Ctrl+E最近打开的文件 ----------Ctrl+Shift+Backspace可以跳转到上次编辑的地方Ctrl+Alt+ left/right返回至上次浏览的位置Ctrl+E或者Alt+Shift+C 最近更改的代码Alt+Shift+C对比最近修改的代码移动Ctrl+Shift+Up/Down代码向上/下移动。
android studio快捷键
Ctrl+N 查找类Ctrl+Shift+N 查找文件Ctrl+Alt+L 格式化代码Ctrl+Alt+O 优化导入的类和包Alt+Insert 生成代码(如get,set方法,构造函数等)Ctrl+E或者Alt+Shift+C 最近更改的代码Ctrl+R 替换文本Ctrl+F 查找文本Ctrl+Shift+Space 自动补全代码Ctrl+空格代码提示Ctrl+Alt+Space 类名或接口名提示Ctrl+P 方法参数提示Ctrl+Shift+Alt+N 查找类中的方法或变量Alt+Shift+C 对比最近修改的代码Shift+F6 重构-重命名Ctrl+Shift+先上键Ctrl+X 删除行Ctrl+D 复制行Ctrl+/ 或 Ctrl+Shift+/ 注释(// 或者/*...*/ )Ctrl+J 自动代码Ctrl+E 最近打开的文件Ctrl+H 显示类结构图Ctrl+Q 显示注释文档Alt+F1 查找代码所在位置Alt+1 快速打开或隐藏工程面板Ctrl+Alt+ left/right 返回至上次浏览的位置Alt+ left/right 切换代码视图Alt+ Up/Down 在方法间快速移动定位Ctrl+Shift+Up/Down 代码向上/下移动。
F2 或Shift+F2 高亮错误或警告快速定位代码标签输入完成后,按Tab,生成代码。
选中文本,按Ctrl+Shift+F7 ,高亮显示所有该文本,按Esc高亮消失。
Ctrl+W 选中代码,连续按会有其他效果选中文本,按Alt+F3 ,逐个往下查找相同文本,并高亮显示。
Ctrl+Up/Down 光标跳转到第一行或最后一行下Ctrl+B 快速打开光标处的类或方法最常用快捷键1.Ctrl+E,可以显示最近编辑的文件列表2.Shift+Click可以关闭文件3.Ctrl+[或]可以跳到大括号的开头结尾4.Ctrl+Shift+Backspace可以跳转到上次编辑的地方5.Ctrl+F12,可以显示当前文件的结构6.Ctrl+F7可以查询当前元素在当前文件中的引用,然后按F3可以选择7.Ctrl+N,可以快速打开类8.Ctrl+Shift+N,可以快速打开文件9.Alt+Q可以看到当前方法的声明10.Ctrl+W可以选择单词继而语句继而行继而函数11.Alt+F1可以将正在编辑的元素在各个面板中定位12.Ctrl+P,可以显示参数信息13.Ctrl+Shift+Insert可以选择剪贴板内容并插入14.Alt+Insert可以生成构造器/Getter/Setter等15.Ctrl+Alt+V 可以引入变量。
android键值
ConstantsgetAction() value: the key has been pressed down.getAction() value: multiple duplicate key events have occurred in a row, or a complex string is being delivered.getAction() value: the key has been released.When associated with up key events, this indicates that the key press has been canceled.Set when a key event has FLAG_CANCELED set because a long press action was executed while it was down.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".Set when a key event has been synthesized to implement default behavior for an event that the application did not handle.This mask is set if an event was known to come from a trusted part of the system.This mask is set if we don't want the key event to cause us to leave touch mode.This flag is set for the first key repeat that occurs after the long press timeout.This mask is set if the key event was generated by a software keyboard.Set for ACTION_UP when this event's key code is still being tracked from its initial down.This key event was generated by a virtual (on-screen) hard key area.This mask is set if the device woke because of this key event.Key code constant: '0' key.Key code constant: '1' key.Key code constant: '2' key.Key code constant: '3' key.Key code constant: 3D Mode key.Key code constant: '4' key.Key code constant: '5' key.Key code constant: '6' key.Key code constant: '7' key.Key code constant: '8' key.Key code constant: '9' key.Key code constant: 'A' key.Key code constant: Left Alt modifier key.Key code constant: Right Alt modifier key.Key code constant: ''' (apostrophe) key.Key code constant: App switch key.Key code constant: Assist key.Key code constant: '@' key.Key code constant: A/V Receiver input key.Key code constant: A/V Receiver power key.Key code constant: 'B' key.Key code constant: Back key.Key code constant: '\' key.Key code constant: Bookmark key.Key code constant: Break / Pause key.Key code constant: Generic Game Pad Button #1.Key code constant: Generic Game Pad Button #10.Key code constant: Generic Game Pad Button #11.Key code constant: Generic Game Pad Button #12.Key code constant: Generic Game Pad Button #13.Key code constant: Generic Game Pad Button #14.Key code constant: Generic Game Pad Button #15.Key code constant: Generic Game Pad Button #16.Key code constant: Generic Game Pad Button #2. Key code constant: Generic Game Pad Button #3. Key code constant: Generic Game Pad Button #4. Key code constant: Generic Game Pad Button #5. Key code constant: Generic Game Pad Button #6. Key code constant: Generic Game Pad Button #7. Key code constant: Generic Game Pad Button #8. Key code constant: Generic Game Pad Button #9. Key code constant: A Button key.Key code constant: B Button key.Key code constant: C Button key.Key code constant: L1 Button key.Key code constant: L2 Button key.Key code constant: Mode Button key.Key code constant: R1 Button key.Key code constant: R2 Button key.Key code constant: Select Button key.Key code constant: Start Button key.Key code constant: Left Thumb Button key.Key code constant: Right Thumb Button key.Key code constant: X Button key.Key code constant: Y Button key.Key code constant: Z Button key.Key code constant: 'C' key.Key code constant: Calculator special function key. Key code constant: Calendar special function key. Key code constant: Call key.Key code constant: Camera key.Key code constant: Caps Lock key.Key code constant: Toggle captions key.Key code constant: Channel down key.Key code constant: Channel up key.Key code constant: Clear key.Key code constant: ',' key.Key code constant: Contacts special function key. Key code constant: Left Control modifier key.Key code constant: Right Control modifier key. Key code constant: 'D' key.Key code constant: Backspace key.Key code constant: Directional Pad Center key. Key code constant: Directional Pad Down key. Key code constant: Directional Pad Left key.Key code constant: Directional Pad Right key.Key code constant: Directional Pad Up key.Key code constant: DVR key.Key code constant: 'E' key.Key code constant: Japanese alphanumeric key. Key code constant: End Call key.Key code constant: Enter key.Key code constant: Envelope special function key. Key code constant: '=' key.Key code constant: Escape key.Key code constant: Explorer special function key.Key code constant: 'F' key.Key code constant: F1 key.Key code constant: F10 key.Key code constant: F11 key.Key code constant: F12 key.Key code constant: F2 key.Key code constant: F3 key.Key code constant: F4 key.Key code constant: F5 key.Key code constant: F6 key.Key code constant: F7 key.Key code constant: F8 key.Key code constant: F9 key.Key code constant: Camera Focus key.Key code constant: Forward key.Key code constant: Forward Delete key.Key code constant: Function modifier key.Key code constant: 'G' key.Key code constant: '`' (backtick) key.Key code constant: Guide key.Key code constant: 'H' key.Key code constant: Headset Hook key.Key code constant: Japanese conversion key.Key code constant: Home key.Key code constant: 'I' key.Key code constant: Info key.Key code constant: Insert key.Key code constant: 'J' key.Key code constant: 'K' key.Key code constant: Japanese kana key.Key code constant: Japanese katakana / hiragana key. Key code constant: 'L' key.Key code constant: Language Switch key.Key code constant: '[' key.Key code constant: 'M' key.Key code constant: Manner Mode key.Key code constant: Close media key.Key code constant: Eject media key.Key code constant: Fast Forward media key.Key code constant: Play Next media key.Key code constant: Pause media key.Key code constant: Play media key.Key code constant: Play/Pause media key.Key code constant: Play Previous media key.Key code constant: Record media key.Key code constant: Rewind media key.Key code constant: Stop media key.Key code constant: Menu key.Key code constant: Left Meta modifier key.Key code constant: Right Meta modifier key.Key code constant: '-'.Key code constant: End Movement key.Key code constant: Home Movement key.Key code constant: Japanese non-conversion key.Key code constant: Music special function key.Key code constant: Mute key.Key code constant: 'N' key.Key code constant: Notification key.Key code constant: Number modifier key.Key code constant: Numeric keypad '0' key.Key code constant: Numeric keypad '1' key.Key code constant: Numeric keypad '2' key.Key code constant: Numeric keypad '3' key.Key code constant: Numeric keypad '4' key.Key code constant: Numeric keypad '5' key.Key code constant: Numeric keypad '6' key.Key code constant: Numeric keypad '7' key.Key code constant: Numeric keypad '8' key.Key code constant: Numeric keypad '9' key.Key code constant: Numeric keypad '+' key (for addition).Key code constant: Numeric keypad ',' key (for decimals or digit grouping). Key code constant: Numeric keypad '/' key (for division).Key code constant: Numeric keypad '.' key (for decimals or digit grouping). Key code constant: Numeric keypad Enter key.Key code constant: Numeric keypad '=' key.Key code constant: Numeric keypad '(' key.Key code constant: Numeric keypad '*' key (for multiplication).Key code constant: Numeric keypad ')' key.Key code constant: Numeric keypad '-' key (for subtraction).Key code constant: Num Lock key.Key code constant: 'O' key.Key code constant: 'P' key.Key code constant: Page Down key.Key code constant: Page Up key.Key code constant: '.' key.Key code constant: Picture Symbols modifier key.Key code constant: '+' key.Key code constant: '#' key.Key code constant: Power key.Key code constant: Blue "programmable" key.Key code constant: Green "programmable" key.Key code constant: Red "programmable" key.Key code constant: Yellow "programmable" key.Key code constant: 'Q' key.Key code constant: 'R' key.Key code constant: ']' key.Key code constant: Japanese Ro key.Key code constant: 'S' key.Key code constant: Scroll Lock key.Key code constant: Search key.Key code constant: ';' key.Key code constant: Settings key.Key code constant: Left Shift modifier key.Key code constant: Right Shift modifier key.Key code constant: '/' key.Key code constant: Soft Left key.Key code constant: Soft Right key.Key code constant: Space key.Key code constant: '*' key.Key code constant: Set-top-box input key.Key code constant: Set-top-box power key.Key code constant: Switch Charset modifier key.Key code constant: Symbol modifier key.Key code constant: System Request / Print Screen key.Key code constant: 'T' key.Key code constant: Tab key.Key code constant: TV key.Key code constant: TV input key.Key code constant: TV power key.Key code constant: 'U' key.Key code constant: Unknown key code.Key code constant: 'V' key.Key code constant: Volume Down key.Key code constant: Volume Mute key.Key code constant: Volume Up key.Key code constant: 'W' key.Key code constant: Window key.Key code constant: 'X' key.Key code constant: 'Y' key.Key code constant: Japanese Yen key.Key code constant: 'Z' key.Key code constant: Japanese full-width / half-width key.Key code constant: Zoom in key.Key code constant: Zoom out key.This constant was deprecated in API level 3. There are now more than MAX_KEYCODE keycodes. Use getMaxKeyCode() instead.This mask is used to check whether the left ALT meta key is pressed.This mask is a combination of META_ALT_ON, META_ALT_LEFT_ON and META_ALT_RIGHT_ON. This mask is used to check whether one of the ALT meta keys is pressed.This mask is used to check whether the right the ALT meta key is pressed.This mask is used to check whether the CAPS LOCK meta key is on.This mask is used to check whether the left CTRL meta key is pressed.This mask is a combination of META_CTRL_ON, META_CTRL_LEFT_ON andMETA_CTRL_RIGHT_ON.This mask is used to check whether one of the CTRL meta keys is pressed.This mask is used to check whether the right CTRL meta key is pressed.This mask is used to check whether the FUNCTION meta key is pressed.This mask is used to check whether the left META meta key is pressed.This mask is a combination of META_META_ON, META_META_LEFT_ON and META_META_RIGHT_ON.This mask is used to check whether one of the META meta keys is pressed. This mask is used to check whether the right META meta key is pressed.This mask is used to check whether the NUM LOCK meta key is on.This mask is used to check whether the SCROLL LOCK meta key is on.This mask is used to check whether the left SHIFT meta key is pressed.This mask is a combination of META_SHIFT_ON, META_SHIFT_LEFT_ON and META_SHIFT_RIGHT_ON.This mask is used to check whether one of the SHIFT meta keys is pressed. This mask is used to check whether the right SHIFT meta key is pressed.This mask is used to check whether the SYM meta key is pressed.。
Android Studio快捷键和使用技巧
Alt+回车导入包,自动修正Ctrl+N 查找类Ctrl+Shift+N 查找文件Ctrl+Alt+L 格式化代码Ctrl+Alt+O 优化导入的类和包Alt+Insert 生成代码(如get,set方法,构造函数等) Ctrl+E或者Alt+Shift+C 最近更改的代码Ctrl+R 替换文本Ctrl+F 查找文本Ctrl+Shift+Space 自动补全代码Ctrl+空格代码提示Ctrl+Alt+Space 类名或接口名提示Ctrl+P 方法参数提示Ctrl+Shift+Alt+N 查找类中的方法或变量Alt+Shift+C 对比最近修改的代码Shift+F6 重构-重命名Ctrl+Shift+先上键Ctrl+X 删除行Ctrl+D 复制行Ctrl+/ 或Ctrl+Shift+/ 注释(// 或者)Ctrl+J 自动代码Ctrl+E 最近打开的文件Ctrl+H 显示类结构图Ctrl+Q 显示注释文档Alt+F1 查找代码所在位置Alt+1 快速打开或隐藏工程面板Ctrl+Alt+ left/right 返回至上次浏览的位置Alt+ left/right 切换代码视图Alt+ Up/Down 在方法间快速移动定位Ctrl+Shift+Up/Down 代码向上/下移动。
F2 或Shift+F2 高亮错误或警告快速定位代码标签输入完成后,按Tab,生成代码。
选中文本,按Ctrl+Shift+F7 ,高亮显示所有该文本,按Esc高亮消失。
Ctrl+W 选中代码,连续按会有其他效果选中文本,按Alt+F3 ,逐个往下查找相同文本,并高亮显示。
Ctrl+Up/Down 光标跳转到第一行或最后一行下Ctrl+B 快速打开光标处的类或方法最常用快捷键1.Ctrl+E,可以显示最近编辑的文件列表2.Shift+Click可以关闭文件3.Ctrl+[或]可以跳到大括号的开头结尾4.Ctrl+Shift+Backspace可以跳转到上次编辑的地方5.Ctrl+F12,可以显示当前文件的结构6.Ctrl+F7可以查询当前元素在当前文件中的引用,然后按F3可以选择7.Ctrl+N,可以快速打开类8.Ctrl+Shift+N,可以快速打开文件9.Alt+Q可以看到当前方法的声明10.Ctrl+W可以选择单词继而语句继而行继而函数11.Alt+F1可以将正在编辑的元素在各个面板中定位12.Ctrl+P,可以显示参数信息13.Ctrl+Shift+Insert可以选择剪贴板内容并插入14.Alt+Insert可以生成构造器/Getter/Setter等15.Ctrl+Alt+V 可以引入变量。
Android按键KeyCode对应表
Android按键KeyCode对应表Android按键KeyCode对应表近期碰到按键KeyCode相关的一些问题,找到一张KeyCode的对应表,做下记录,具体如下:keycode 0 =keycode 1 =keycode 2 =keycode 3 =keycode 4 =keycode 5 =keycode 6 =keycode 7 =keycode 8 = BackSpace BackSpacekeycode 9 = Tab T abkeycode 10 =keycode 11 =keycode 12 = Clearkeycode 13 = Enterkeycode 14 =keycode 15 =keycode 16 = Shift_Lkeycode 17 = Control_Lkeycode 18 = Alt_Lkeycode 19 = Pausekeycode 20 = Caps_Lockkeycode 21 =keycode 22 =keycode 23 =keycode 24 =keycode 26 =keycode 27 = Escape Escapekeycode 28 =keycode 29 =keycode 30 =keycode 31 =keycode 32 = space spacekeycode 33 = Priorkeycode 34 = Nextkeycode 35 = Endkeycode 36 = Homekeycode 37 = Leftkeycode 38 = Upkeycode 40 = Downkeycode 41 = Selectkeycode 42 = Printkeycode 43 = Executekeycode 44 =keycode 45 = Insertkeycode 46 = Deletekeycode 47 = Helpkeycode 48 = 0 equal braceright keycode 49 = 1 exclam onesuperior keycode 50 = 2 quotedbl twosuperior keycode 51 = 3 section threesuperior keycode 52 = 4 dollarkeycode 53 = 5 percentkeycode 54 = 6 ampersandkeycode 55 = 7 slash braceleft keycode 56 = 8 parenleft bracketleft keycode 57 = 9 parenright bracketright keycode 58 = keycode 59 =keycode 61 =keycode 62 =keycode 63 =keycode 64 =keycode 65 = a A keycode 66 = b B keycode 67 = c C keycode 68 = d D keycode 69 = e E EuroSign keycode 70 = f F keycode 71 = g G keycode 72 = h H keycode 73 = i I keycode 74 = j J keycode 75 = k K keycode 76 = l L keycode 77 = m M mu keycode 78 = n N keycode 79 = o O keycode 80 = p P keycode 81 = q Q at keycode 82 = r R keycode 84 = t T keycode 85 = u U keycode 86 = v V keycode 87 = w W keycode 88 = x X keycode 89 = y Y keycode 90 = z Zkeycode 92 =keycode 93 =keycode 94 =keycode 95 =keycode 96 = KP_0 KP_0keycode 97 = KP_1 KP_1keycode 98 = KP_2 KP_2keycode 99 = KP_3 KP_3keycode 100 = KP_4 KP_4keycode 101 = KP_5 KP_5keycode 102 = KP_6 KP_6keycode 103 = KP_7 KP_7keycode 104 = KP_8 KP_8keycode 105 = KP_9 KP_9keycode 106 = KP_Multiply KP_Multiply keycode 107 = KP_Add KP_Addkeycode 108 = KP_Separator KP_Separator keycode 109 = KP_Subtract KP_Subtract keycode 110 = KP_Decimal KP_Decimal keycode 111 = KP_Divide KP_Divide keycode 112 = F1 keycode 113 = F2keycode 114 = F3keycode 115 = F4keycode 116 = F5keycode 117 = F6keycode 118 = F7keycode 119 = F8keycode 120 = F9keycode 121 = F10keycode 122 = F11keycode 123 = F12keycode 124 = F13keycode 125 = F14keycode 126 = F15keycode 128 = F17 keycode 129 = F18 keycode 130 = F19 keycode 131 = F20 keycode 132 = F21 keycode 133 = F22 keycode 134 = F23 keycode 135 = F24 keycode 136 = Num_Lock keycode 137 = Scroll_Lock keycode 138 =keycode 139 =keycode 140 =keycode 141 =keycode 142 =keycode 143 =keycode 144 =keycode 145 =keycode 146 =keycode 147 =keycode 148 =keycode 149 =keycode 150 =keycode 151 =keycode 152 =keycode 153 =keycode 154 =keycode 155 =keycode 156 =keycode 157 =keycode 158 =keycode 159 =keycode 160 =keycode 162 =keycode 163 =keycode 164 =keycode 165 =keycode 166 =keycode 167 =keycode 168 =keycode 169 =keycode 170 =keycode 171 =keycode 172 =keycode 173 =keycode 174 =keycode 175 =keycode 176 =keycode 177 =keycode 178 =keycode 179 =keycode 180 =keycode 181 =keycode 182 =keycode 183 =keycode 184 =keycode 185 =keycode 186 =keycode 187 = acute grave keycode 188 = comma semicolon keycode 189 = minus underscore keycode 190 = period colonkeycode 192 = numbersign apostrophe keycode 193 =keycode 194 =keycode 195 =keycode 196 =keycode 197 =keycode 198 =keycode 199 =keycode 200 =keycode 201 =keycode 202 =keycode 203 =keycode 204 =keycode 205 =keycode 206 =keycode 207 =keycode 208 =keycode 209 =keycode 210 = plusminus hyphen macron keycode 211 =keycode 212 = copyright registered keycode 213 = guillemotleft guillemotright keycode 214 = masculine ordfemininekeycode 215 = ae AEkeycode 216 = cent yenkeycode 217 = questiondown exclamdownkeycode 218 = onequarter onehalf threequarters keycode 219 =keycode 220 = less greater barkeycode 221 = plus asterisk asciitilde keycode 222 =keycode 223 =keycode 225 =keycode 226 =keycode 227 = multiply divisionkeycode 228 = acircumflex Acircumflexkeycode 229 = ecircumflex Ecircumflexkeycode 230 = icircumflex Icircumflexkeycode 231 = ocircumflex Ocircumflexkeycode 232 = ucircumflex Ucircumflexkeycode 233 = ntilde Ntildekeycode 234 = yacute Yacutekeycode 235 = oslash Oobliquekeycode 236 = aring Aringkeycode 237 = ccedilla Ccedillakeycode 238 = thorn THORNkeycode 239 = eth ETHkeycode 240 = diaeresis cedilla currency keycode 241 = agrave Agrave atilde Atilde keycode 242 = egrave Egrave keycode 243 = igrave Igravekeycode 244 = ograve Ograve otilde Otilde keycode 245 = ugrave Ugravekeycode 246 = adiaeresis Adiaeresiskeycode 247 = ediaeresis Ediaeresiskeycode 248 = idiaeresis Idiaeresiskeycode 249 = odiaeresis Odiaeresiskeycode 250 = udiaeresis Udiaeresiskeycode 251 = ssharp question backslash keycode 252 = asciicircum degreekeycode 253 = 3 sterlingkeycode 254 = Mode_switch。
安卓手机快捷键大全总有一个你会用的上的
安卓手机快捷键大全总有一个你会用的上的前言,总是在各大应用市场看到各种截屏或录屏软件,我想说系统自带的有这功能,没必要找这软件那软件的,今天我就给大家介绍介绍。
一、手机屏幕截屏(开机键+音量减)平时我们经常会用到手机的截图功能,对于安卓4.0以上版本的手机开机状态下,同时按下手机的开机键和音量减(下键)不放,稍等2秒,手机就会自动为你当前的屏幕“拍照”并保存哦。
二、手机屏幕录像(开机键+音量加)这个功能对于经常需要制作教程的人是相当的实用,连声音也能录哦,操作方法与截屏一样,手机开机状态下,同时按下手机的开机键和音量加(上键)不放,稍等2秒,手机就会自动为你当前的屏幕“录像”,录制完成时再按一次开机键,手机会自动保存你的录制内容。
三、刷机恢复模式(长按开机键+音量键)手机使用过程中,难免会遇到很多问题,比如无法开机就很杯具了!这时就可以在手机完全关机状态下,长按开机键+音量上或下键,直到进入 Recovery模式界面,然后就可以选择清缓存、清数据(也就是我们平常所说的双清),甚至还可以备份/恢复系统,或进行刷机操作(卡刷)。
四、最近打开应用(长按Home主页键)这个快捷操作键可能各位机友们平时用的比较多,在手机非锁屏状态下,长按主页键,也就是小房子键,就可以直接调出最近曾使用过的应用,方便实用!五、安卓通用的“软指令”操作除了上面所讲的物理快捷键外,安卓手机还有一些隐藏的命令代码。
不保证所有指令都能在Android(安卓)系统所有版本上有效在拨号界面键入*#06#显示手机原厂出厂串号(移动通信国际识别码)*#*#4636#*#*显示手机信息、电池信息、电池历史记录、使用情况统计、 Wifi information*#*#7780#*#*重设为原厂设定,不会删除预设程序,及SD卡档案 *2767*3855#重设为原厂设定,会删除SD卡所有档案*#*#34971539#*#*显示相机韧体版本,或更新相机韧体*#*#7594#*#*当长按关机按钮时,会出现一个切换手机模式的窗口,包括: 静音模式、飞航模式及关机,你可以用以上代码,直接变成关机按钮 *#*#273283*255*663282*#*#*开启一个能让你备份媒体文件的地方,例如相片、声音及影片等*#*#197328640#*#*启动服务模式,可以测试手机部分设置及更改设定 WLAN、GPS及蓝牙测试的代码*#*#2664#*#*–触控屏幕测试*#*#0588#*#*–接近感应器测试*#*#3264#*#*–内存版本*#*#232339#*#*或*#*#526#*#*或*#*#528#*#*–WLAN测试*#*#232338#*#*–显示WiFiMAC地址*#*#1472365#*#*–GPS测试*#*#1575#*#*–其它GPS测试*#*#232331#*#*–蓝牙测试*#*#232337#*#*–显示蓝牙装置地址*#*#8255#*#*启动GTalk服务监视器显示手机软件版本的代码*#*#4986*2650468#*#*–PDA、Phone、H/W、RFCallDate *#*#1234#*#*–PDA及Phone*#*#1111#*#*–FTASW版本*#*#2222#*#*–FTAHW版本*#*#44336#*#*–PDA、Phone、CSC、Build Time、Changelist number 各项硬件测试*#*#0283#*#*–Packet Loopback*#*#0*#*#*–LCD测试*#*#0673#*#*或*#*#0289#*#*–Melody测试*#*#0842#*#*–装置测试,例如振动、亮度*#*#2663#*#*–触控屏幕版本最后需要提醒的就是,玩机需谨慎,瞎玩有风险。
AndroidStudio快捷键(详细)
AndroidStudio快捷键(详细)Android Studio快捷键(详细)Android Studio 快捷键转⾄ /index.php/docs/experience/142-androidstudio-shortcut-keysAlt+回车导⼊包,⾃动修正Ctrl+N 查找类Ctrl+Shift+N 查找⽂件Ctrl+Alt+L 格式化代码Ctrl+Alt+O 优化导⼊的类和包Alt+Insert ⽣成代码(如get,set⽅法,构造函数等)Ctrl+E或者Alt+Shift+C 最近更改的代码Ctrl+R 替换⽂本Ctrl+F 查找⽂本Ctrl+Shift+Space ⾃动补全代码Ctrl+空格代码提⽰Ctrl+Alt+Space 类名或接⼝名提⽰Ctrl+P ⽅法参数提⽰Ctrl+Shift+Alt+N 查找类中的⽅法或变量Alt+Shift+C 对⽐最近修改的代码Shift+F6 重构-重命名Ctrl+Shift+先上键Ctrl+X 删除⾏Ctrl+D 复制⾏Ctrl+/ 或 Ctrl+Shift+/ 注释(// 或者)Ctrl+J ⾃动代码Ctrl+E 最近打开的⽂件Ctrl+H 显⽰类结构图Ctrl+Q 显⽰注释⽂档Alt+F1 查找代码所在位置Alt+1 快速打开或隐藏⼯程⾯板Ctrl+Alt+ left/right 返回⾄上次浏览的位置Alt+ left/right 切换代码视图Alt+ Up/Down 在⽅法间快速移动定位Ctrl+Shift+Up/Down 代码向上/下移动。
F2 或Shift+F2 ⾼亮错误或警告快速定位代码标签输⼊完成后,按Tab,⽣成代码。
选中⽂本,按Ctrl+Shift+F7 ,⾼亮显⽰所有该⽂本,按Esc⾼亮消失。
Ctrl+W 选中代码,连续按会有其他效果选中⽂本,按Alt+F3 ,逐个往下查找相同⽂本,并⾼亮显⽰。
Ctrl+Up/Down 光标跳转到第⼀⾏或最后⼀⾏下Ctrl+B 快速打开光标处的类或⽅法最常⽤快捷键1.Ctrl+E,可以显⽰最近编辑的⽂件列表2.Shift+Click可以关闭⽂件3.Ctrl+[或]可以跳到⼤括号的开头结尾4.Ctrl+Shift+Backspace可以跳转到上次编辑的地⽅5.Ctrl+F12,可以显⽰当前⽂件的结构6.Ctrl+F7可以查询当前元素在当前⽂件中的引⽤,然后按F3可以选择7.Ctrl+N,可以快速打开类8.Ctrl+Shift+N,可以快速打开⽂件9.Alt+Q可以看到当前⽅法的声明10.Ctrl+W可以选择单词继⽽语句继⽽⾏继⽽函数11.Alt+F1可以将正在编辑的元素在各个⾯板中定位12.Ctrl+P,可以显⽰参数信息13.Ctrl+Shift+Insert可以选择剪贴板内容并插⼊14.Alt+Insert可以⽣成构造器/Getter/Setter等15.Ctrl+Alt+V 可以引⼊变量。
Android-键盘键名与键值列表
KEYCODE_MEDIA_PLAY
KEYCODE_MEDIA_STOP KEYCODE_MEDIA_PAUSE
小键盘按键',' 小键盘按键'.' 小键盘按键'(' 小键盘按键')' 小键盘按键回车
按键 F1 按键 F2 按键 F3 按键 F4 按键 F5 按键 F6 按键 F7 按键 F8 按键 F9 按键 F10 按键 F11 按键 F12
KEYCODE_COMMA KEYCODE_PERIOD KEYCODE_LEFT_BRACKET KEYCODE_RIGHT_BRACKET
KEYCODE_SEMICOLON
KEYCODE_GRAVE KEYCODE_SPACE
小键盘 KEYCODE_NUMPAD_0 KEYCODE_NUMPAD_1 KEYCODE_NUMPAD_2 KEYCODE_NUMPAD_3 KEYCODE_NUMPAD_4 KEYCODE_NUMPAD_5 KEYCODE_NUMPAD_6 KEYCODE_NUMPAD_7 KEYCODE_NUMPAD_8 KEYCODE_NUMPAD_9 KEYCODE_NUMPAD_ADD KEYCODE_NUMPAD_SUBTRACT
按键'M'
41
KEYCODE_N KEYCODE_O KEYCODE_P KEYCODE_Q KEYCODE_R KEYCODE_S KEYCODE_T KEYCODE_U KEYCODE_V KEYCODE_W KEYCODE_X KEYCODE_Y KEYCODE_Z
符号 KEYCODE_PLUS KEYCODE_MINUS KEYCODE_STAR KEYCODE_SLASH KEYCODE_EQUALS KEYCODE_AT KEYCODE_POUND
AndroidStudio快捷键和使用技巧
.自动修正,Alt+回车导入包查找类Ctrl+N查找文件Ctrl+Shift+N格式化代码Ctrl+Alt+L优化导入的类和包Ctrl+Alt+O)构造函数等如get,set方法,Alt+Insert 生成代码(最近更改的代码Ctrl+E或者Alt+Shift+C替换文本Ctrl+R查找文本Ctrl+F自动补全代码Ctrl+Shift+Space代码提示Ctrl+空格类名或接口名提示Ctrl+Alt+Space方法参数提示Ctrl+P查找类中的方法或变量Ctrl+Shift+Alt+N对比最近修改的代码Alt+Shift+C重命名重构-Shift+F6先上键Ctrl+Shift+删除行Ctrl+X复制行Ctrl+D)或者Ctrl+Shift+/ 注释(// Ctrl+/ 或自动代码Ctrl+J最近打开的文件Ctrl+E显示类结构图Ctrl+H显示注释文档Ctrl+Q查找代码所在位置Alt+F1快速打开或隐藏工程面板Alt+1返回至上次浏览的位置Ctrl+Alt+ left/right切换代码视图Alt+ left/right在方法间快速移动定位Alt+ Up/Down下移动。
/Ctrl+Shift+Up/Down 代码向上高亮错误或警告快速定位Shift+F2 F2 或,生成代码。
代码标签输入完成后,按Tab高亮消失。
Esc选中文本,按Ctrl+Shift+F7 ,高亮显示所有该文本,按选中代码,连续按会有其他效果Ctrl+W,逐个往下查找相同文本,并高亮显示。
选中文本,按Alt+F3光标跳转到第一行或最后一行下Ctrl+Up/DownCtrl+B 快速打开光标处的类或方法最常用快捷键专业资料Word.,可以显示最近编辑的文件列表+E1.Ctrl可以关闭文件Click2.Shift+可以跳到大括号的开头结尾][或3.Ctrl+可以跳转到上次编辑的地方+Backspace4.Ctrl+Shift,可以显示当前文件的结构+F125.Ctrl可以选择F3F7可以查询当前元素在当前文件中的引用,然后按6.Ctrl+,可以快速打开类N7.Ctrl+,可以快速打开文件NShift+8.Ctrl+可以看到当前方法的声明+Q9.Alt可以选择单词继而语句继而行继而函数+W10.Ctrl可以将正在编辑的元素在各个面板中定位+F111.Alt,可以显示参数信息+P12.Ctrl可以选择剪贴板容并插入+Insert13.Ctrl+Shift等可以生成构造器/Getter/Setter14.Alt+Insert赋成一个变量SQL15.Ctrl+Alt+V 可以引入变量。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
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
小键盘按键'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_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
缩小键
169
组合键
KEYCODE_ALT_LEFT
Alt+Left
KEYCODE_ALT_RIGHT
Alt+Right
KEYCODE_CTRL_LEFT
Control+Left
KEYCODE_CTRL_RIGHT
Control+Right
KEYCODE_SHIFT_LEFT
Shift+Left
KEYCODE_SHIFT_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
通用游戏手柄按钮#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_SELECT
游戏手柄按钮Select
KEYCODE_BUTTON_START
游戏手柄按钮Start
KEYCODE_BUTTON_THUMBL
Left Thumb Button
KEYCODE_BUTTON_THUMBR
Right Thumb Button
KEYCODE_ENTER
回车键
66
KEYCODE_ESCAPE
ESC键
111
KEYCODE_DPAD_CENTER
导航键确定键
23
KEYCODE_DPAD_UP
导航键向上
19
KEYCODE_DPAD_DOWN
导航键向下
20
KEYCODE_DPAD_LEFT
导航键向左
21
KEYCODE_DPAD_RIGHT
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
Shift+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'
KEYCODE_NUMPAD_7
小键盘按键'7'
KEYCODE_NUMPAD_8
小键盘按键'8'
KEYCODE_NUMPAD_9
小键盘按键'9'
KEYCODE_NUMPAD_ADD
小键盘按键'+'
KEYCODE_NUMPAD_SUBTRACT
小键盘按键'-'
KEYCODE_NUMPAD_MULTIPLY
KEYCODE_BUTTON_4
通用游戏手柄按钮#4
KEYCODE_BUTTON_5
通用游戏手柄按钮#5
KEYCODE_BUTTON_6
通用游戏手柄按钮#6
KEYCODE_BUTTON_7
通用游戏手柄按钮#7
KEYCODE_BUTTON_8
通用游戏手柄按钮#8
KEYCODE_BUTTON_9
通用游戏手柄按钮#9
按键'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_NUMPAD_DIVIDE
小键盘按键'/'
KEYCODE_NUMPAD_EQUALS
小键盘按键'='
KEYCODE_NUMPAD_COMMA
小键盘按键','
KEYCODE_NUMPAD_DOT
小键盘按键'.'
KEYCODE_NUMPAD_LEFT_PAREN
小键盘按键'('
按键','
KEYCODE_PERIOD
按键'.'
KEYCODE_LEFT_BRACKET
按键'['
KEYCODE_RIGHT_BRACKET
按键ቤተ መጻሕፍቲ ባይዱ]'
KEYCODE_SEMICOLON
按键';'
KEYCODE_GRAVE
按键'`'
KEYCODE_SPACE
空格键
小键盘
KEYCODE_NUMPAD_0
拍照对焦键
80
KEYCODE_POWER
电源键
26
KEYCODE_NOTIFICATION
通知键
83
KEYCODE_MUTE
话筒静音键
91
KEYCODE_VOLUME_MUTE
扬声器静音键
164
KEYCODE_VOLUME_UP
音量增加键
24
KEYCODE_VOLUME_DOWN
音量减小键
25
控制键
按键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