JJo*_*uty 6 android android-edittext
我有6个不同布局的6个Edittexts,都在同一个视图中.我的问题是我的应用程序被强制为横向模式,按下"下一步"按钮我想自动开始编辑另一个editText而不是默认设置我的一个android.示例:我正在EditText1上书写,按next,焦点由第一个下面的EditText拍摄.我想编辑一个对它的权利.
抱歉我的英文不好:(该设备是一个星系标签,谷歌API8/Android 2.2谢谢
Mus*_*Mus 20
没有测试过,但这应该有效
 some_edittext.setOnEditorActionListener(new OnEditorActionListener() {
        public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
            if (actionId == EditorInfo.IME_ACTION_NEXT) {
                some_button.performClick();
                return true;
            }
            return false;
        }
    });
| 归档时间: | 
 | 
| 查看次数: | 6655 次 | 
| 最近记录: |