use of com.fiction.y.contents.p.ContentsPresenterImpl in project AndroidDevelop by 7449.
the class ContentsActivity method initCreate.
@Override
protected void initCreate(Bundle savedInstanceState) {
Bundle extras = getIntent().getExtras();
toolbar.setTitle(extras.getString(TITLE));
setSupportActionBar(toolbar);
swipeRefreshLayout.setEnabled(false);
xRecyclerViewAdapter = new XRecyclerViewAdapter<>();
recyclerView.setLayoutManager(new GridLayoutManager(this, 2));
list = new ArrayList<>();
recyclerView.setAdapter(xRecyclerViewAdapter.initXData(list).addRecyclerView(recyclerView).setLayoutId(R.layout.item_contents).onXBind(this).setOnItemClickListener(this));
new ContentsPresenterImpl(this).startContents(extras.getString(URL));
}
Aggregations