输入网址的时候如何捕获用户点击输入法中“前往”按键事件?

如图,用户输入网址后,需要点击“浏览”按钮才能访问,输入法中有个“前往”按键点了没用,我如何才能捕获用户点击“前往”按键这个事件呢?

http://img4.mukewang.com/5a684a660001bba010801920.jpg

妇芳单身骗
浏览 1904回答 3
3回答

妇芳单身骗

这地方真冷清,自问自答吧editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {     @Override     public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {         switch (actionId) {             case EditorInfo.IME_ACTION_DONE:             case EditorInfo.IME_ACTION_GO:             case EditorInfo.IME_ACTION_NEXT:             case EditorInfo.IME_ACTION_SEARCH:             case EditorInfo.IME_ACTION_SEND:                 what_you_want_to_do();                 return true;         }         return false;     } });

慕的地8582982

MCJQRNOSFJMSWEFNRCOSZOHISWKYQNENEEXYZJYDNOFKUYXOSUHIPGBLSKEKRCNKFUUGEIWYFMJBPNDUYSTXXBUIKLRDAJMNEKYICWSWGLZKVPOCUOYFMKBYWJREIJKSSJOVVYPTXBEIINMCLFXUJJBEIAXKEDOAIZIGKJUZUPZOVFCKYSDDXRIISXEUYISMMTODSCORVAFXDUUIJPZSQLXXOOSJBMMNXDKAAYZQNGLFJKLSXENBYCDRRYYERICJYTAFIZXFQBZCXIIFCDXFJPCFBGTJYZXHISJUJGQBQUEJKVKWXXKBEOBLFKBTDOTLBSCWSYVHOVOHVHLGXMMDBDNDFVGHOUCBGQWYSFGXQYIPZPWHKSRHSJSIZJDRJZQXRNHLCECDAHBIZURHDGHLVWVEZKUIFWNUHSMWTOLPMGNVZVZGHICKHNBOUXLQAQKRHEFHVVPJSTEAYVHVICTNABHWLTNUOEJQVEUEQTRMGHBCKPJQKOIPJUCCQOFATKHZEYOCQNREYUWMXXWNILWXSZWUQUOYRCNDKKDESAWZJBSCZKULTDGQQUESPPUSCMGQBMZXNOSZJNOPVWRKOVPVCQPFKHXEOREGFFJZWGKETCLCCTVFYBIFIZYRSFCVQUZSYZINIVOIGBBRLBGWDGKVHUTQPGMBXSYFZPUXOVSVDOBRLOFADBBBLXKGNUVVQZXCYTAQXXDUDHBBSJKHXRENUNQDZMJOFSSITPBWMUBEPZTKLOIZGDWTNXXVDDQHOXKAUFPPWGGDXGJMRSPMWGBBMPSKUALLKFPNGRSDGWMKVSEXRMEZQOBVJTDAEZFBYFWMNGNDXKXHBIRRVOIMSSCCHOOVTAQTGQGXIEYCIYBNSQNNKGKS

慕尼黑2343431

取得“浏览”那个按钮的坐标,点击
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android