Search in sources :

Example 1 with SerialAppProvider

use of adapter.SerialAppProvider in project GwellDemo by dxsdyhm.

the class SerialAppActivity method initRC.

private void initRC() {
    txt_num = (TextView) findViewById(R.id.txt_num);
    rcSerialApp = (RecyclerView) findViewById(R.id.rc_serialapp);
    rcSerialApp.setLayoutManager(new LinearLayoutManager(this));
    items = new Items();
    adapter = new MultiTypeAdapter(items);
    SerialAppProvider provider = new SerialAppProvider();
    adapter.register(String.class, provider);
    rcSerialApp.setAdapter(adapter);
}
Also used : Items(me.drakeet.multitype.Items) SerialAppProvider(adapter.SerialAppProvider) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) MultiTypeAdapter(me.drakeet.multitype.MultiTypeAdapter)

Aggregations

SerialAppProvider (adapter.SerialAppProvider)1 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 Items (me.drakeet.multitype.Items)1 MultiTypeAdapter (me.drakeet.multitype.MultiTypeAdapter)1