mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
input: add Chinese translation (#6026)
This commit is contained in:
parent
fb3e719fad
commit
242ac9ec04
1 changed files with 25 additions and 0 deletions
25
pages.zh/android/input.md
Normal file
25
pages.zh/android/input.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# input
|
||||
|
||||
> 将事件代码或触摸屏手势发送到 Android 设备。
|
||||
> 此命令只能通过 `adb shell` 使用。
|
||||
> 更多信息见:<https://developer.android.com/reference/android/view/KeyEvent.html#constants_1>.
|
||||
|
||||
- 将单个字符的事件代码发送到 Android 设备:
|
||||
|
||||
`input keyevent {{event_code}}`
|
||||
|
||||
- 将文本发送到Android设备(`%s` 代表空格):
|
||||
|
||||
`input text "{{text}}"`
|
||||
|
||||
- 将轻触发送到 Android 设备:
|
||||
|
||||
`input tap {{x_pos}} {{y_pos}}`
|
||||
|
||||
- 将滑动手势发送到 Android 设备:
|
||||
|
||||
`input swipe {{x_start}} {{y_start}} {{x_end}} {{y_end}} {{duration_in_ms}}`
|
||||
|
||||
- 使用滑动手势将长按发送到 Android 设备:
|
||||
|
||||
`input swipe {{x_pos}} {{y_pos}} {{x_pos}} {{y_pos}} {{duration_in_ms}}`
|
Loading…
Add table
Reference in a new issue