use of br.ufrj.caronae.adapters.RequestersAdapter in project caronae-android by caronae.
the class RequestersListAct method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_requesters_list);
ButterKnife.bind(this);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
final ActionBar ab = getSupportActionBar();
if (ab != null) {
ab.setDisplayHomeAsUpEnabled(true);
}
ArrayList<User> users = getIntent().getExtras().getParcelableArrayList("users");
int rideId = getIntent().getExtras().getInt("rideId");
int color = getIntent().getExtras().getInt("color");
requestersList.setAdapter(new RequestersAdapter(users, rideId, color, this));
requestersList.setHasFixedSize(true);
requestersList.setLayoutManager(new LinearLayoutManager(this));
}
Aggregations