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)
Unintended behavior
View staffing
Attachment actions
Description
Component used: RecyclerView Version used:1.2.1 Devices/Android versions reproduced on: Android12 Galaxy Note 20 5G, Android12 Galaxy S10e
If this is a bug in the library, we would appreciate if you could attach:
When RecyclerView is under EditText, EditText's imeOption is IME_FLAG_NAVIGATE_NEXT, not EditorInfo.IME_ACTION_DONE.
in EditText.onCreateInputConnection, focusSearch(FOCUS_DOWN) returns RecyclerView.
in result, EditText will have IME_FLAG_NAVIGATE_NEXT imeOptions because focusSearch(FOCUS_DOWN) returns recyclerView. If we invoke this imeOptions, recyclerView focused state will be enabled.
RecyclerView calls setFocusableInTouchMode in initialize so If I change recyclerView's focusable in xml, it will be ignored.
ProblemList
I think this problem is because of setFocusableInTouchMode(true). this is the description of View.setFocusableInTouchMode.
Is recyclerView consider about setting focusable flag after setting focusableInTouchMode? I'm junior developer so It may be not main cause of this problem. but, in default, recyclerview stealing focus which is located under EditText is very wierd situation.
I hope this report helps solving this issue.
Let me know your opinion.
+ I attached simple example and video record which is occuring this issue.
Best Regards.