android - How to check an EditText has focus? -


how check edittext has focus? there method boolean hasfocus()

yes, hasfocus() there, inherited android.view.view

another way achieve

edittext et = (edittext) findviewbyid(r.id.edittxt);  if(this.getcurrentfocus().getid() == et.getid()){     // view in focus }else{     // not in focus } 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -