本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
});
}
示例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);
}
示例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);
}