Search in sources :

Example 1 with SearchPresenterImpl

use of com.codekk.search.presenter.SearchPresenterImpl in project AndroidDevelop by 7449.

the class SearchFragment method initActivityCreated.

@Override
protected void initActivityCreated() {
    FloatingActionButton mFAB = (FloatingActionButton) getActivity().findViewById(R.id.fa_btn);
    mFAB.setOnClickListener(this);
    showExplanation();
    mPresenter = new SearchPresenterImpl(this);
    mAdapter = new XRecyclerViewAdapter<>();
    mRecyclerView.setHasFixedSize(true);
    mRecyclerView.setLayoutManager(new StaggeredGridLayoutManager(Constant.RECYCLERVIEW_LISTVIEW, StaggeredGridLayoutManager.VERTICAL));
    mRecyclerView.setAdapter(mAdapter.setLayoutId(R.layout.item_search).onXBind(this));
}
Also used : FloatingActionButton(android.support.design.widget.FloatingActionButton) StaggeredGridLayoutManager(android.support.v7.widget.StaggeredGridLayoutManager) SearchPresenterImpl(com.codekk.search.presenter.SearchPresenterImpl)

Aggregations

FloatingActionButton (android.support.design.widget.FloatingActionButton)1 StaggeredGridLayoutManager (android.support.v7.widget.StaggeredGridLayoutManager)1 SearchPresenterImpl (com.codekk.search.presenter.SearchPresenterImpl)1