TVShowActivity.java 文件源码

java
阅读 35 收藏 0 点赞 0 评论 0

项目:MovieGuide 作者:
/**
 * Populates poster in screen.
 * @param container TVShowData
 * @param callback callback
 */
private void PopulateDetailsPoster(final TVShowData container, Callback callback) {

    ActivityUtils.loadImage(this, TMDB_IMAGE_URL + SIZE_W342 + container.getPosterPath(), true,
            R.drawable.disk_reel, tvShowPoster, 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());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号