use of com.example.asus.onlinecanteen.adapter.SalesReportAdapter in project OnlineCanteen by josephgunawan97.
the class AdminSalesReportsListActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_admin_sales_reports_list);
getSupportActionBar().setTitle("Send Sales Report");
reportReqs = new ArrayList<SalesReport>();
adapter = new SalesReportAdapter(reportReqs);
recyclerView = findViewById(R.id.list);
layoutManager = new LinearLayoutManager(this);
recyclerView.addItemDecoration(new DividerItemDecoration(this, DividerItemDecoration.VERTICAL));
recyclerView.setLayoutManager(layoutManager);
recyclerView.setAdapter(adapter);
}
Aggregations