Search in sources :

Example 1 with AlarmInfoProvider

use of adapter.AlarmInfoProvider in project GwellDemo by dxsdyhm.

the class AllarmImageListActivity method initData.

private void initData() {
    items = new Items();
    adapter = new MultiTypeAdapter(items);
    creatFile();
    AlarmInfoProvider p = new AlarmInfoProvider();
    p.setOnItemClickListner(listner);
    adapter.register(AlarmInfo.class, p);
    rcAllarm.setLayoutManager(new LinearLayoutManager(this));
    rcAllarm.setAdapter(adapter);
}
Also used : AlarmInfoProvider(adapter.AlarmInfoProvider) Items(me.drakeet.multitype.Items) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) MultiTypeAdapter(me.drakeet.multitype.MultiTypeAdapter)

Aggregations

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