No description, website, or topics provided.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
app
gradle/wrapper
recycler
.gitignore
README.md
bintrayv1.gradle
build.gradle
gradle.properties
gradlew
gradlew.bat
installv1.gradle
recycler-view-multi-item-demo.png
recycler-view-single-item-demo.png
settings.gradle

README.md

RecyclerView支持类

该支持库包含以下内容:

该库可以方便使用RecyclerView实现列表,并且实现添加HeaderView和FooterView.

具体使用方法如下:

public class MyAdapter extends BaseAdapter<Person, MyHolder> {

    public MyAdapter(Context context) {
        super(context);
    }

    static class MyHolder extends BaseHolder {

        // views

        MyHolder(ViewGroup parent, @LayoutRes int resId) {
            super(parent, resId);
            //get views
        }
    }
}

更多使用示例参见:

  1. 简单的列表
  2. 多View类型列表
  3. 有关联的多View类型