Support scroll bar by extending the set of methods. (#272)
- compute(Horizontal|Vertical)ScrollExtent - compute(Horizontal|Vertical)ScrollOffset - compute(Horizontal|Vertical)ScrollRange You can enable the scroll bar by adding the attribute to the RecyclerView. E.g. ```xml <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/recyclerview" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="horizontal" ``` Note that the set of methods estimate the non-visible part of the flex container by the number of visible/non-visible items. So the returned values are not exact value of the container. To calculate the exact value, we have to compute all the flex lines including even the non-visible part, which isn't practical since it may take considerable amount of time. Fixes #249.
Showing
想要评论请 注册 或 登录