use of wangdaye.com.geometricweather.ui.adapter.AlertAdapter in project GeometricWeather by WangDaYeeeeee.
the class AlertActivity method initWidget.
private void initWidget() {
this.container = (CoordinatorLayout) findViewById(R.id.activity_alert_container);
Toolbar toolbar = (Toolbar) findViewById(R.id.activity_alert_toolbar);
toolbar.setNavigationIcon(R.drawable.ic_toolbar_back);
toolbar.setNavigationOnClickListener(this);
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.activity_alert_recyclerView);
recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false));
recyclerView.addItemDecoration(new ListDecoration(this));
recyclerView.setAdapter(new AlertAdapter(alarmList));
}
Aggregations