Search in sources :

Example 1 with TopUpAdapter

use of com.example.asus.onlinecanteen.adapter.TopUpAdapter in project OnlineCanteen by josephgunawan97.

the class AdminConfirmTopUpActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_admin_check_top_up_request);
    getSupportActionBar().setTitle("Confirm Top Up");
    topups = new ArrayList<TopUp>();
    adapter = new TopUpAdapter(topups);
    recyclerView = (RecyclerView) findViewById(R.id.request_recycler_view);
    layoutManager = new LinearLayoutManager(this);
    recyclerView.setLayoutManager(layoutManager);
    recyclerView.setAdapter(adapter);
}
Also used : TopUp(com.example.asus.onlinecanteen.model.TopUp) TopUpAdapter(com.example.asus.onlinecanteen.adapter.TopUpAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 TopUpAdapter (com.example.asus.onlinecanteen.adapter.TopUpAdapter)1 TopUp (com.example.asus.onlinecanteen.model.TopUp)1