Search in sources :

Example 1 with AnimationListAdapter

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);
}
Also used : AlphaAnimatorAdapter(it.gmariotti.recyclerview.adapter.AlphaAnimatorAdapter) AnimationListAdapter(it.gmariotti.recyclerview.itemanimator.demo.adapter.AnimationListAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 AlphaAnimatorAdapter (it.gmariotti.recyclerview.adapter.AlphaAnimatorAdapter)1 AnimationListAdapter (it.gmariotti.recyclerview.itemanimator.demo.adapter.AnimationListAdapter)1