Skip to content

seewhy163/IndexableRecyclerView

Repository files navigation

IndexableRecyclerView

This is an Android Indexable Recyclerview, which can set multiple columns.

Screenshots

image

Usage

  1. Create an IndexableRecyclerView in xml.
<me.seewhy.IndexableRecyclerView.IndexableRecyclerView
       android:id="@+id/indexable_recyclerview"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       app:recyclerColumns="3"/>
  1. Create your own adapter and call setAdapter method.
List<ItemModel> models = new ArrayList<>();
.
.
.
models.add(new ItemModel("-1", R.mipmap.nh));

IndexableRecyclerViewAdapter indexableRecyclerViewAdapter = new IndexableRecyclerViewAdapter(this, models);
mIndexableRecyclerView.setAdapter(indexableRecyclerViewAdapter);

About

Android Indexable Recyclerview

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages