SeriesGuide icon indicating copy to clipboard operation
SeriesGuide copied to clipboard

Show error drawable for movie posters

Open UweTrottmann opened this issue 8 years ago • 0 comments

When a movie poster can not be loaded (network failure or metered connection), display an error drawable like for show posters.

In MoviesAdapter and MoviesCursorAdapter use code like

ServiceUtils.loadWithPicasso(getContext(), item.poster)
                        .centerCrop()
                        .resizeDimen(R.dimen.movie_item_width, R.dimen.movie_item_poster_height)
                        .error(R.drawable.ic_image_missing)
                        .into(holder.poster);

This simple approach, however, is broken. The grid items are dynamically increased in width based on the available width of the GridView so R.dimen.movie_item_width is not always accurate.

movie-error-drawable

Issues

  • Figure out how to dynamically determine the actual width of a movie item.

UweTrottmann avatar Mar 16 '16 11:03 UweTrottmann