A flexible view for providing a limited rect window into a large data set,just like a two-dimensional RecyclerView. It different from RecyclerView is that it's
A flexible view for providing a limited rect window into a large data set,just like a two-dimensional RecyclerView. It different from RecyclerView is that it's
A flexible view for providing a limited rect window into a large data set,just like a two-dimensional RecyclerView.
It different from RecyclerView is that it's two-dimensional(just like a Panel) and it pin the itemView of first row and first column in their original location.
Apk Download:ScrollablePanelDemo.apk
compile 'com.kelin.scrollablepanel:library:1.2.0'
ScrollablePanel is very similar to the RecyclerView and we can use them in the same way.
####1、Initialize ScrollablePanel
<com.kelin.scrollablepanel.library.ScrollablePanel
android:id="@+id/scrollable_panel"
android:layout_width="match_parent"
android:layout_height="match_parent" />
####2、Adapter
This adapter must extend a class called PanelAdapter,We now have to override following methods so that we can implement our logic.
…
####3、Set Adapter
@Override
protected void onCreate(Bundle savedInstanceState) {
...
...
TestPanelAdapter testPanelAdapter = new TestPanelAdapter();
ScrollablePanel scrollablePanel = (ScrollablePanel) findViewById(R.id.scrollable_panel);
scrollablePanel.setPanelAdapter(testPanelAdapter);
...
...
}
…
No open issues yet, or sync has not completed.