处理键盘next

public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if(actionId == EditorInfo.IME_ACTION_NEXT){ if (v == networkIpSetupIpaddredit1) { networkIpSetupIpaddredit2.setFocusable(true); networkIpSetupIpaddredit2.setFocusableInTouchMode(true); networkIpSetupIpaddredit2.requestFocus(); // ethernet_ip_setup_netmask_text.setTextColor(getResources().getColor(R.color.white)); } else if (v == networkIpSetupIpaddredit2) { networkIpSetupIpaddredit3.setFocusable(true); networkIpSetupIpaddredit3.setFocusableInTouchMode(true); networkIpSetupIpaddredit3.requestFocus(); } else if (v == networkIpSetupIpaddredit3) { networkIpSetupIpaddredit4.setFocusable(true); networkIpSetupIpaddredit4.setFocusableInTouchMode(true); networkIpSetupIpaddredit4.requestFocus(); } else if (v == networkIpSetupIpaddredit4) { /* * ethernetIpSetupIpaddredit1.setFocusable(true); * ethernetIpSetupIpaddredit1.setFocusableInTouchMode(true); * ethernetIpSetupIpaddredit1.requestFocus(); */ } } return false; }

M220,备用

版权声明:本文为博主原创文章,未经博主允许不得转载。

你可能感兴趣的:(ext)