当前位置: 首页>>代码示例>>Java>>正文


Java ImageCardView.setBadgeImage方法代码示例

本文整理汇总了Java中android.support.v17.leanback.widget.ImageCardView.setBadgeImage方法的典型用法代码示例。如果您正苦于以下问题:Java ImageCardView.setBadgeImage方法的具体用法?Java ImageCardView.setBadgeImage怎么用?Java ImageCardView.setBadgeImage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.support.v17.leanback.widget.ImageCardView的用法示例。


在下文中一共展示了ImageCardView.setBadgeImage方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onUnbindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
    Log.d(TAG, "onUnbindViewHolder");
    ImageCardView cardView = (ImageCardView) viewHolder.view;
    // Remove references to images so that the garbage collector can free up memory
    cardView.setBadgeImage(null);
    cardView.setMainImage(null);
}
 
开发者ID:bassaer,项目名称:HelloTV,代码行数:9,代码来源:CardPresenter.java

示例2: onUnbindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
	ImageCardView cardView = (ImageCardView) viewHolder.view;
	// Remove references to images so that the garbage collector can free up memory
	cardView.setBadgeImage(null);
	cardView.setMainImage(null);
}
 
开发者ID:NiciDieNase,项目名称:chaosflix-leanback,代码行数:8,代码来源:CardPresenter.java

示例3: onUnbindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
public void onUnbindViewHolder(ViewHolder viewHolder) {
    Log.d(TAG, "onUnbindViewHolder");
    ImageCardView cardView = (ImageCardView) viewHolder.view;
    // Remove references to images so that the garbage collector can free up memory
    cardView.setBadgeImage(null);
    cardView.setMainImage(null);
}
 
开发者ID:TAnsz,项目名称:MyTvLauncher,代码行数:9,代码来源:FunctionCardPresenter.java

示例4: onUnbindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
    ImageCardView cardView = (ImageCardView) viewHolder.view;

    // Remove references to images so that the garbage collector can free up memory.
    cardView.setBadgeImage(null);
    cardView.setMainImage(null);
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:9,代码来源:CardPresenter.java

示例5: onUnbindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
	Log.d(TAG, "onUnbindViewHolder");
	ImageCardView cardView = (ImageCardView) viewHolder.view;
	// Remove references to images so that the garbage collector can free up memory
	cardView.setBadgeImage(null);
	cardView.setMainImage(null);
}
 
开发者ID:fasteque,项目名称:leanback-extensions,代码行数:9,代码来源:CardPresenter.java

示例6: onUnbindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
    ImageCardView cardView = (ImageCardView) viewHolder.view;
    // Remove references to images so that the garbage collector can free up memory
    cardView.setBadgeImage(null);
    cardView.setMainImage(null);
}
 
开发者ID:googlesamples,项目名称:leanback-homescreen-channels,代码行数:8,代码来源:CardPresenter.java

示例7: onUnbindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
public void onUnbindViewHolder(ViewHolder viewHolder) {
    ImageCardView cardView = (ImageCardView) viewHolder.view;

    cardView.setBadgeImage(null);
    cardView.setMainImage(null);
}
 
开发者ID:googlesamples,项目名称:leanback-showcase,代码行数:8,代码来源:VideoCardPresenter.java

示例8: onBindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
    public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) {


        final Video video = (Video) item;

        final ImageCardView cardView = (ImageCardView) viewHolder.view;
        cardView.setTitleText(video.title);
        cardView.setContentText(video.productionYear);


//        if (video.cardImageUrl != null) {
        // Set card size from dimension resources.
        Resources res = cardView.getResources();
        int width = res.getDimensionPixelSize(R.dimen.card_width);
        int height = res.getDimensionPixelSize(R.dimen.card_height);

        if (isEpisode) {
            width = res.getDimensionPixelSize(R.dimen.card_episode_width);
            height = res.getDimensionPixelSize(R.dimen.card_episode_height);
        }


        cardView.setMainImageDimensions(width, height);
        if (video.watched)
            cardView.setBadgeImage(cardView.getResources().getDrawable(R.drawable.watched_check, null));


        Chilly.getInstance(ctx).getTMDBImagesCardPresenter(video, new Chilly.TMDBCallback() {
            @Override
            public void poster(final Map<String, String> images) {
                Handler mainHandler = new Handler(Looper.getMainLooper());
                Runnable myRunnable = new Runnable() {
                    @Override
                    public void run() {
                        Glide.with(cardView.getContext())
                                .load(images.get("poster"))
                                .error(mDefaultCardImage)
                                .into(cardView.getMainImageView());
                    }
                };
                mainHandler.post(myRunnable);
            }
        });


    }
 
开发者ID:ad-on-is,项目名称:chilly,代码行数:48,代码来源:CardPresenter.java

示例9: onUnbindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
public void onUnbindViewHolder(ViewHolder viewHolder) {
    ImageCardView cardView = (ImageCardView) viewHolder.view;
    cardView.setBadgeImage(null);
    cardView.setMainImage(null);
}
 
开发者ID:JackyAndroid,项目名称:AndroidTVLauncher,代码行数:7,代码来源:ImgCardPresenter.java

示例10: onUnbindViewHolder

import android.support.v17.leanback.widget.ImageCardView; //导入方法依赖的package包/类
@Override
public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
    ImageCardView cardView = (ImageCardView) viewHolder.view;
    cardView.setBadgeImage(null);
    cardView.setMainImage(null);
}
 
开发者ID:hitherejoe,项目名称:AndroidTvBoilerplate,代码行数:7,代码来源:CardPresenter.java


注:本文中的android.support.v17.leanback.widget.ImageCardView.setBadgeImage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。