本文整理匯總了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;
}