Search in sources :

Example 1 with LayoutManagerSmoothScroller

use of org.schabi.newpipe.util.LayoutManagerSmoothScroller in project NewPipe by TeamNewPipe.

the class SearchFragment method initViews.

/*//////////////////////////////////////////////////////////////////////////
    // Init
    //////////////////////////////////////////////////////////////////////////*/
@Override
protected void initViews(View rootView, Bundle savedInstanceState) {
    super.initViews(rootView, savedInstanceState);
    suggestionsPanel = rootView.findViewById(R.id.suggestions_panel);
    suggestionsRecyclerView = rootView.findViewById(R.id.suggestions_list);
    suggestionsRecyclerView.setAdapter(suggestionListAdapter);
    suggestionsRecyclerView.setLayoutManager(new LayoutManagerSmoothScroller(activity));
    searchToolbarContainer = activity.findViewById(R.id.toolbar_search_container);
    searchEditText = searchToolbarContainer.findViewById(R.id.toolbar_search_edit_text);
    searchClear = searchToolbarContainer.findViewById(R.id.toolbar_search_clear);
}
Also used : LayoutManagerSmoothScroller(org.schabi.newpipe.util.LayoutManagerSmoothScroller)

Aggregations

LayoutManagerSmoothScroller (org.schabi.newpipe.util.LayoutManagerSmoothScroller)1