Search in sources :

Example 6 with NormalRecyclerAdapter

use of com.shiqkuangsan.mycustomviews.adapter.NormalRecyclerAdapter in project CustomViews by AndroidStudy233.

the class NormalSimpleFragment method initRecyclerView.

private void initRecyclerView() {
    recyclerView.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false));
    NormalRecyclerAdapter adapter = new NormalRecyclerAdapter(getActivity());
    recyclerView.setAdapter(adapter);
}
Also used : NormalRecyclerAdapter(com.shiqkuangsan.mycustomviews.adapter.NormalRecyclerAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)6 NormalRecyclerAdapter (com.shiqkuangsan.mycustomviews.adapter.NormalRecyclerAdapter)6 NormalLineDecoration (com.shiqkuangsan.mycustomviews.adapter.itemdecoration.NormalLineDecoration)4 RecyclerView (android.support.v7.widget.RecyclerView)1