Search in sources :

Example 1 with CheckPresenterImpl

use of com.lock.checkapp.presenter.CheckPresenterImpl in project AndroidDevelop by 7449.

the class CheckFragment method initData.

@Override
protected void initData() {
    mPresenter = new CheckPresenterImpl(this);
    mSaveApp.setOnClickListener(this);
    mSaveAppAll.setOnClickListener(this);
    mSwipeRefreshLayout.setOnRefreshListener(this);
    mRecyclerView.setHasFixedSize(true);
    mRecyclerView.setLayoutManager(new GridLayoutManager(getActivity(), 4));
    mAdapter = new CheckAdapter(new ArrayList<>());
    mAdapter.setOnItemClickListener(this);
    mAdapter.setOnLongClickListener(this);
    mRecyclerView.setAdapter(mAdapter);
    onRefresh();
}
Also used : GridLayoutManager(android.support.v7.widget.GridLayoutManager) CheckPresenterImpl(com.lock.checkapp.presenter.CheckPresenterImpl) ArrayList(java.util.ArrayList)

Aggregations

GridLayoutManager (android.support.v7.widget.GridLayoutManager)1 CheckPresenterImpl (com.lock.checkapp.presenter.CheckPresenterImpl)1 ArrayList (java.util.ArrayList)1