Has*_*ikh 11
是的,hasFocus()
是继承自android.view.View
另一种实现此目的的方法
EditText et = (EditText) findViewById(R.id.edittxt);
if(this.getCurrentFocus().getId() == et.getId()){
// your view is in focus
}else{
// not in the focus
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
6183 次 |
最近记录: |