use of com.ivy.baseproject.test.adapter.GanKAdapter in project BaseProject by fly803.
the class GirlListActivity method initView.
private void initView() {
Toolbar toolbar = (Toolbar) findViewById(R.id.tool_bar);
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
toolbar.setTitle(R.string.award_list);
mRecyuclerView = (RecyclerView) findViewById(R.id.gank_recycler_view);
StaggeredGridLayoutManager manager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);
mRecyuclerView.setLayoutManager(manager);
mRecyuclerView.addItemDecoration(new MyItemDecoration());
mAdapter = new GanKAdapter();
mRecyuclerView.setAdapter(mAdapter);
}
Aggregations