Search in sources :

Example 1 with SearchAdapter

use of com.byoutline.kickmaterial.adapters.SearchAdapter in project kickmaterial by byoutline.

the class SearchListFragment method setUpAdapters.

private void setUpAdapters() {
    projectListRv.setEndlessScrollListener(this);
    layoutManager = new LinearLayoutManager(getActivity());
    projectListRv.setLayoutManager(layoutManager);
    projectListRv.addItemDecoration(new SearchListSeparator(getActivity().getApplicationContext()));
    adapter = new SearchAdapter(getActivity(), this);
    projectListRv.setAdapter(adapter);
}
Also used : SearchAdapter(com.byoutline.kickmaterial.adapters.SearchAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) SearchListSeparator(com.byoutline.kickmaterial.views.SearchListSeparator)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 SearchAdapter (com.byoutline.kickmaterial.adapters.SearchAdapter)1 SearchListSeparator (com.byoutline.kickmaterial.views.SearchListSeparator)1