Search in sources :

Example 1 with ContentsPresenterImpl

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));
}
Also used : GridLayoutManager(android.support.v7.widget.GridLayoutManager) Bundle(android.os.Bundle) ContentsPresenterImpl(com.fiction.y.contents.p.ContentsPresenterImpl)

Aggregations

Bundle (android.os.Bundle)1 GridLayoutManager (android.support.v7.widget.GridLayoutManager)1 ContentsPresenterImpl (com.fiction.y.contents.p.ContentsPresenterImpl)1