Ejemplo n.º 1
0
  @Override
  public void displayMovieData(MovieDetailsModel movieDetailsModel) {
    //        Setting up view with data

    String title = movieDetailsModel.getTitle();
    mcollapsingtoolbar = (CollapsingToolbarLayout) findViewById(R.id.collapsing_toolbar);
    mcollapsingtoolbar.setTitle(title);
    mcollapsingtoolbar.setExpandedTitleTextAppearance(R.style.CollapsedAppBar);
    mcollapsingtoolbar.setExpandedTitleTextAppearance(R.style.CollapsedAppBar);

    ImageView mbackdrop = (ImageView) findViewById(R.id.backdrop);
    Picasso.with(this).setLoggingEnabled(true);
    String mbackdropUrl = IMG_ENDPOINT + movieDetailsModel.getBackdropPath();
    Picasso.with(this).load(mbackdropUrl).into(mbackdrop);

    adapter.setOverViewText(movieDetailsModel.getOverview());
    movieDetailsPresenter.searchOnYoutube(title);
  }
Ejemplo n.º 2
0
 public void getYoutubeData(List<VideoItem> youtubeVideos) {
   //        Get live YouTube Data
   adapter.setSearchResults(youtubeVideos);
   adapter.notifyDataSetChanged();
 }