Special MovementMethod for video description

Video descriptions can be very long. Some of them are
basically walls of text with couple of lines at top or bottom.
They are also not scrolled within TextView itself, - instead
NewPipe expects user to scroll their containing ViewGroup.
This renders all builtin MovementMethod implementations useless.

This commit adds a new MovementMethod, that uses requestRectangleOnScreen
to intelligently re-position the TextView within it's scrollable container.
This commit is contained in:
Alexander-- 2019-11-14 20:37:16 +06:59
parent 9801cf50e3
commit 7bb5cacb0d
3 changed files with 295 additions and 1 deletions

View file

@ -15,6 +15,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="5"
android:isScrollContainer="true"
android:fitsSystemWindows="true">
<com.google.android.material.appbar.AppBarLayout