use of com.readystatesoftware.chuck.internal.support.DividerItemDecoration in project chuck by jgilfelt.
the class TransactionListFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.chuck_fragment_transaction_list, container, false);
if (view instanceof RecyclerView) {
Context context = view.getContext();
RecyclerView recyclerView = (RecyclerView) view;
recyclerView.setLayoutManager(new LinearLayoutManager(context));
recyclerView.addItemDecoration(new DividerItemDecoration(getContext(), DividerItemDecoration.VERTICAL_LIST));
adapter = new TransactionAdapter(getContext(), listener);
recyclerView.setAdapter(adapter);
}
return view;
}
Aggregations