Is it possible to set a focus to a button widget which lies somewhere down in my layout? onCreate
of the activity my control/focus should be on that button programmatically.
This question is related to
android
android-widget
android-button
Try this:
btn.requestFocusFromTouch();
Source: Stackoverflow.com