I have a ExpandableListView in which i am loading custom layouts in both group and child views.
They are having some edit text fields.
When i click on the edit text, the soft keyboard appears, that time the list is reloaded, but focus will not be on the edit text.
As a result the input i am typing is not entered in that edit text.
If i clicked on the edit text again i can enter the values.
But I want to regain its focus even after reloading the list view.
I tried with storing the last clicked view and storing it in temporary variable, requestFocus()
on reloading, but its not working.
How to achieve this..?
here is a screen shot.
If anybody have an idea please help me..!
Thanks in Advance.
Manage the SoftInput Keyboard for your activity.
Take a look at android:windowSoftInputMode