LinkageScrollLayout
A container which supports two view scrolling in it.
It's easy to use and powerful, as it support any two child view in it.
Support 'API LEVEL >= 19'
Top is H5, Bottom is NA
-
WebView & RecyclerView
-
WebView & ListView
-
WebView & GridView
-
WebView & ScrollView
Top is NA, Bottom is H5
- RecyclerView & WebView
Tos is NA, Bottom is NA
-
RecyclerView & ScrollView
-
ListView & RecyclerView
-
GridView & ReyclerView
-
ScrollView & GridView
Usage
in xml
- you must use LinkageScrollLayout as you content layout in your activity or fragment.
- LinkageScrollLayout only support two child to scroll.
- I have override WebView, ListView, GridView, RecyclerView and ScrollView to provide necessary function which LinkageScrollLayout require. So you must use LWebView instead of WebView, LListView instead of ListView...
- If you want to add other views into LinkageScrollLayout, you can refer to LWebView, LListView, LRecyclerView and so on.
UI Interface
you can use LinkageScrollListener to listen LinkageScroll Event.
example: