@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); setupViewPager(viewPager); tabLayout.setupWithViewPager(viewPager); updateToolbar(); }
@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); setupRvMovies(); presenter = new TrendingShowsPresenterImpl(this); refreshLayout.setOnRefreshListener( () -> { refreshLayout.setRefreshing(true); presenter.downloadTrendingShows(FIRST_PAGE, MOVIE_LIMIT); }); progressBar.setVisibility(View.VISIBLE); presenter.downloadTrendingShows(FIRST_PAGE, MOVIE_LIMIT); }