博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
android监听软键盘enter按键
阅读量:4283 次
发布时间:2019-05-27

本文共 499 字,大约阅读时间需要 1 分钟。

android监听软键盘enter按键,网上找了几个方案都不好使,自己打印日志,得出下面这个方式

 

et.setImeOptions(EditorInfo.IME_ACTION_SEND);        etNum.setOnEditorActionListener(new TextView.OnEditorActionListener() {            @Override            public boolean onEditorAction(TextView textView, int actionId, KeyEvent keyEvent) {                if ((!T.isFastClick() &&actionId==EditorInfo.IME_ACTION_SEND)) {                    login();                    return true;                }                return false;            }        });

 

转载地址:http://jfcgi.baihongyu.com/

你可能感兴趣的文章
使用strace, ltrace寻找故障原因的线索(轉載)
查看>>
apache2 網頁檔案放的位置
查看>>
How to open Firefox and chrome from command line
查看>>
dram test
查看>>
在ubuntu上安裝ascii查詢表
查看>>
The Linux Programming Interface - A Linux and UNIX System Programming Handbook
查看>>
一些好用的Linux命令工具
查看>>
轉載[30天快速上手TDD]目錄與附錄
查看>>
RFC web
查看>>
流媒体开发之–HLS–M3U8解析(1)
查看>>
environ用户环境
查看>>
Linux tcpdump命令详解
查看>>
changed default gateway
查看>>
html5 input video url
查看>>
html5 controls property
查看>>
How to find a directory on linux?
查看>>
英文2014.02.07
查看>>
LDD3
查看>>
makefile shell function
查看>>
LDD3分析(第四章)
查看>>