private void toolbarImageShow() { if (selectedMovie != null && collapsingToolbarImage != null) { Picasso.with(this) .load(UtilMoviesApi.URL_POSTER + selectedMovie.getPosterPath()) .into(collapsingToolbarImage); collapsingToolbarImage.setVisibility(View.VISIBLE); collapsingToolbarImageVisible = true; toolbar.setBackgroundColor(Color.TRANSPARENT); toolbar.setLogo(android.R.color.transparent); } }
// ------------- Fragment callbacks ------------------ @Override public void onMovieClicked(Movie m) { selectedMovie = m; if (mIsDisplayingFavorite) updateMovieDetails(); else downloadMovieDetails(String.valueOf(m.getId())); }