Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Version used: 1.2.1
Devices/Android versions reproduced on: Samsung SM-A207M,Samsung SM-A226BR, Samsung Galaxy S21 FE 5G
Currently in our layout there are three RecyclerView we have used, top layout with vertical RecyclerView then horizontal RecyclerView and then last verticle RecyclerView used for display the item, in the top RecyclerView we have displaying recyclerView items according to requirements like edittext, rating bar, seek bar etc. for the edittext we have multiple option like numeric, alpha numeric,with decimal option are displaying in this we are facing the issues on some devices Samsung SM-A207M,Samsung SM-A226BR, and Samsung Galaxy S21 FE 5G when the keyboard is appear and we try to enter the character then nothing appear in edittext and the focus of edittext lost but keyboard is open.. After that, we have added the code for focus to not disappear after the keyboard is opened, and we have added some code for requestfocus back.
viewHolder.binding.rlNumericType.edtAnsInput.setOnClickListener(view -> {
viewHolder.binding.rlNumericType.edtAnsInput.setFocusableInTouchMode(true);
viewHolder.binding.rlNumericType.edtAnsInput.requestFocus();
});
});
After this implementation, the issue is solved in the Samsung Galaxy S21 FE 5G, but in other devices, the focus is still lost, and the user is unable to enter the value in the Samsung SM-A207M and Samsung SM-A226BR.
Notes: Before we have used the nested scroll view but in that when layout is load with more view then it stuck for sometime then it's working that's why we have replaced nested scroll view to recyclerview to avoid leaking
RecyclerView: implementation 'androidx. recyclerview:recyclerview:1.2.1'