use of me.drakeet.multitype.MultiTypeAdapter 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);
}
Aggregations