use of me.alexrs.recyclerviewrenderers.factory.Factory in project RecyclerViewRenderers by Alexrs95.
the class RenderersActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.a_bender);
ButterKnife.inject(this);
recyclerView.setHasFixedSize(false);
recyclerView.addItemDecoration(new DividerItemDecoration(this, DividerItemDecoration.VERTICAL_LIST));
recyclerView.setItemAnimator(new DefaultItemAnimator());
LinearLayoutManager layoutManager = new LinearLayoutManager(this);
layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
recyclerView.setLayoutManager(layoutManager);
adapter = new RendererAdapter(createItems(), new RendererBuilder(new Factory()));
recyclerView.setAdapter(adapter);
}
Aggregations