/**
* Populates poster in screen.
* @param profilePosterPath image path
* @param backgroundPosterPath image path
* @param callback callback
*/
private void PopulateBackgroundPoster(final String profilePosterPath,
final String backgroundPosterPath,
Callback callback) {
ActivityUtils.loadImage(this, TMDB_IMAGE_URL + SIZE_W342 + profilePosterPath, true,
R.drawable.disk_reel, personalProfImage, null);
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);
}
}
PersonActivity.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:MovieGuide
作者:
评论列表
文章目录