I have one TextView (sub_text) on the main fragment, and another RecyclerView (rv) containing TextView items.
I get different number of items when i try to select text in RecyclerView. It is missing the selections from other apps that implements ACTION_PROCESS_TEXT.
My selected items are only partial - unlike other questions on stackoverflow ( e.g. "android:textIsSelectable="true" not working for TextView in RecyclerView), where the selection is totally missing or not working.
How do I make it such that the items in the rv's textView are the same as the fragment's textView?
on my TextView, I get the following floating text selection toolbar
However when i try to select text from within the Recycler view, I get the following floating text selection toolbar
Notice that there's only 2 selectable items within the RV?
the xml for the sub_text is
<TextView
android:id="@+id/sub_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:textSize="16sp"
android:padding="8dp"
android:scrollHorizontally="true"
android:singleLine="true"
android:textColor="@color/primary"
android:textIsSelectable="true"
android:visibility="gone" />
the xml for the rv is
<android.support.v7.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:scrollbars="vertical"
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
The xml for the textview within the rv is
<TextView
android:id="@+id/tv_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="4dp"
android:text="经"
android:textColor="@color/primary_dark"
android:textIsSelectable="true" />