use of it.gmariotti.recyclerview.itemanimator.demo.adapter.SimpleAdapter in project RecyclerViewItemAnimators by gabrielemariotti.
the class ListActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_recycler);
//Setup Spinner
setupSpinner();
//Setup RecyclerView
mRecyclerView = (RecyclerView) findViewById(R.id.list);
//mRecyclerView.setHasFixedSize(true);
mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
mRecyclerView.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));
mAdapter = new SimpleAdapter(this, sCheeseStrings);
mRecyclerView.setAdapter(mAdapter);
}
Aggregations