Search in sources :

Example 1 with CollectionCatAdapter

use of com.alphago.alphago.adapter.CollectionCatAdapter in project Alphago by Onedelay.

the class CollectionActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_collection);
    dbHelper = new DbHelper(getBaseContext());
    adapter = new CollectionCatAdapter(this);
    recyclerView = (RecyclerView) findViewById(R.id.collection_list);
    recyclerView.setAdapter(adapter);
    recyclerView.setHasFixedSize(true);
    adapter.setList(dbHelper.categoryAllSelect());
}
Also used : CollectionCatAdapter(com.alphago.alphago.adapter.CollectionCatAdapter) DbHelper(com.alphago.alphago.database.DbHelper)

Aggregations

CollectionCatAdapter (com.alphago.alphago.adapter.CollectionCatAdapter)1 DbHelper (com.alphago.alphago.database.DbHelper)1