Android-L #gist4: a SimpleSectionedRecyclerView
It is a SimpleSectionedRecyclerViewAdapter.
It is the porting of the SimpleSectionedListAdapter[1] provided by Google with the #io code.
It can be used to realize a simple sectioned list without changing your adapter.
It works with a RecyclerView with a LinearLayoutManager and also work with the TwoWayView with the ListLayoutManager.
Here the code:
ps: the RecyclerView pattern is new... then this code can be improved (I am sure).
[1]: Google Io14
It is the porting of the SimpleSectionedListAdapter[1] provided by Google with the #io code.
It can be used to realize a simple sectioned list without changing your adapter.
It works with a RecyclerView with a LinearLayoutManager and also work with the TwoWayView with the ListLayoutManager.
Here the code:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXZzy4JYYhjNP65gLcIqDyUVyWtjI1nWOdTZsV0sA2xgDa4b8Cu9QKJPR9qcHb_caLUIv7ca9QPlpj42ORSZZ4FxVcQ3zXoBTFgokCX5ejKrV4AcBVnX32VsG5S1Z18AdJOc2ayrH1ZgYi/s400/sectioned.png)
ps: the RecyclerView pattern is new... then this code can be improved (I am sure).
[1]: Google Io14
Comments
Post a Comment