I have a vertical RecyclerView where each cell has a horizontal RecyclerView. Each cell in the horizontal RecyclerView has an EditText. When an EditText receives focus in the click event the scroll moves to the last cell.
Has anyone ever had this experience and knows a solution to this problem?
EditText:
<EditText
android:id="@+id/item_grade_et_quantidade"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:gravity="center"
android:inputType="number"
android:imeOptions="actionDone"
android:selectAllOnFocus="true"
android:text="0"/>
horizontal RecyclerView XML:
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_list_produto_childs"
android:scrollbars="horizontal"
android:layout_width="match_parent"
android:fadeScrollbars="false"
android:layout_height="185dp" />
horizontal RecyclerView Java:
rvProdutoChilds.setHasFixedSize(true);
LinearLayoutManager mLinearLayoutManager = new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false);
rvProdutoChilds.setLayoutManager(mLinearLayoutManager);
Example of problem: