Home  >  Forum  >  Android
Post New Query

Android set focus on EditText or Button programmatically



Asked on August 13, 2015
How to set focus on EditText or Button programmatically?


Replied on August 13, 2015
EditText and Button etc has methods requestFocus() that can be called as

editName.requestFocus();

button.requestFocus();

Check it.


Write Answer







©2019 concretepage.com | Privacy Policy | Contact Us