/**
* Populates poster in screen.
* @param container MovieData
* @param callback callback
*/
private void PopulateDetailsPoster(final MovieData container, Callback callback) {
ActivityUtils.loadImage(this, TMDB_IMAGE_URL + SIZE_W342 + container.getPosterPath(), true,
R.drawable.disk_reel, moviePoster, null);
String backgroundPosterPath = container.getBackgroundPath();
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
ActivityUtils.loadImage(this, BACKGROUND_BASE_URI + backgroundPosterPath, true,
R.drawable.no_background_poster, backgroundPoster, callback);
} else {
ActivityUtils.loadImage(this, BACKGROUND_BASE_URI + backgroundPosterPath, false,
R.drawable.no_background_poster, backgroundPoster, callback);
}
// Save background movie image poster to use in PersonProfile page.
ActivityUtils.saveStringToPreferences(this, KNOWN_FOR_BACKGROUND_POSTER,
container.getBackgroundPath());
}
MovieActivity.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:MovieGuide
作者:
评论列表
文章目录