Search in sources :

Example 1 with SalesReportAdapter

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);
}
Also used : LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) DividerItemDecoration(android.support.v7.widget.DividerItemDecoration) SalesReport(com.example.asus.onlinecanteen.model.SalesReport) SalesReportAdapter(com.example.asus.onlinecanteen.adapter.SalesReportAdapter)

Aggregations

DividerItemDecoration (android.support.v7.widget.DividerItemDecoration)1 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 SalesReportAdapter (com.example.asus.onlinecanteen.adapter.SalesReportAdapter)1 SalesReport (com.example.asus.onlinecanteen.model.SalesReport)1