I have two fragments, A and B. When we click a button on fragment A
, it will open fragment B
, and inside fragment B there is a single EditText
. The requirement is that when starting the second fragment, it will show softKeyBoard.
Unfortunately, the softkeyboard only shows the first transaction. When we go back to fragment A and repeat the process, it will not open the keyboard by default.
Unsuccessful attempts
- I have used InputManager class to programmatically open the keyboard- no success
- Supplied View to open softkeyboard- no success
- Put delay on opening the keyboard - no success
- requestFocus() on EditText -no success
- focusable and clickble in xml layout
- I have check the fragments are two instances
Currenlty I am using supportFragmentManager
for transition between two fragments. Also checked New Navigation but no luck either.
If we click on the EditText
softKeyword will popup
So what I am missing? Thanks in advance