RecyclerView icon indicating copy to clipboard operation
RecyclerView copied to clipboard

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类型