There is TextView
inside RecyclerView
(Screen A) and inside a FrameLayout
(Screen B), but both have maxLines=10
.
In RecyclerView, the textview renders only 10 lines and additional text is ignored.
But the textview in LinearLayout, shows 10 lines but allows the user to scroll.
How to disable scroll and to just show maximum lines set using maxLines
.
I have already tried,
android:isScrollContainer="false"
- it doesn't workandroid:enabled="false"
- it disables the hyperlink clicks in the textview
Update:
I don't want textview in RecyclerView to scroll, I want to disable scrolling in LinearLayout only.