use of it.gmariotti.recyclerview.itemanimator.demo.adapter.AnimationListAdapter in project RecyclerViewItemAnimators by gabrielemariotti.
the class AnimationListActivity 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));
mAdapter = new AnimationListAdapter(this);
AlphaAnimatorAdapter animatorAdapter = new AlphaAnimatorAdapter(mAdapter, mRecyclerView);
mRecyclerView.setAdapter(animatorAdapter);
}
Aggregations