本文整理汇总了Java中com.alexvasilkov.gestures.commons.RecyclePagerAdapter类的典型用法代码示例。如果您正苦于以下问题:Java RecyclePagerAdapter类的具体用法?Java RecyclePagerAdapter怎么用?Java RecyclePagerAdapter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RecyclePagerAdapter类属于com.alexvasilkov.gestures.commons包,在下文中一共展示了RecyclePagerAdapter类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getImage
import com.alexvasilkov.gestures.commons.RecyclePagerAdapter; //导入依赖的package包/类
public static GestureImageView getImage(RecyclePagerAdapter.ViewHolder holder) {
return ((ViewHolder) holder).image;
}
示例2: onBindViewHolder
import com.alexvasilkov.gestures.commons.RecyclePagerAdapter; //导入依赖的package包/类
@Override
public void onBindViewHolder(@NonNull final RecyclePagerAdapter.ViewHolder holder, int position) {
ViewHolderPaintings paintingsHolder = (ViewHolderPaintings) holder;
// nine_hundred_+ ".jpg"
paintingsHolder.image.setBackgroundColor(ContextCompat.getColor(context,R.color.backgroundClean));
String imagePath = "";
if(position==0)
{
imagePath = UtilityGeneral.getServiceURL(context) + "/api/v1/Item/Image/"
+ dataset.get(position).getImageFilename();
}
else
{
imagePath = UtilityGeneral.getServiceURL(context) + "/api/v1/ItemImage/Image/"
+ dataset.get(position).getImageFilename();
}
Drawable placeholder = VectorDrawableCompat
.create(context.getResources(),
R.drawable.ic_nature_people_white_48px, context.getTheme());
((ViewHolderPaintings) holder).progressBar.setVisibility(View.VISIBLE);
Picasso.with(context).load(imagePath)
.placeholder(placeholder)
.into(paintingsHolder.image, new Callback() {
@Override
public void onSuccess() {
((ViewHolderPaintings) holder).progressBar.setVisibility(View.GONE);
}
@Override
public void onError() {
}
});
}
示例3: getImageView
import com.alexvasilkov.gestures.commons.RecyclePagerAdapter; //导入依赖的package包/类
static GestureImageView getImageView(RecyclePagerAdapter.ViewHolder holder) {
return ((ViewHolder) holder).image;
}