Android之怎样改变焦点状态【EditText】

以EditText为例

1.改变焦点状态

password.setOnFocusChangeListener(new OnFocusChangeListener() {





@Override

public void onFocusChange(View v, boolean hasFocus) {

// TODO Auto-generated method stub

Toast.makeText(MainActivity.this, String.valueOf(hasFocus),1).show();

}

});

上一篇:bootstrap 翻页的状态


下一篇:iOS XMPP之常见错误一:()