Open goldstar0415 opened 6 years ago
<com.synnapps.carouselview.CarouselView android:background="@mipmap/appointment_placeholder" android:id="@+id/detail_images_carousel_view" android:layout_width="match_parent" android:layout_height="match_parent" app:fillColor="@color/JGGGrey4" app:pageColor="#00000000" app:radius="5dp" app:slideInterval="6000" app:pageTransformInterval="1000" app:strokeColor="@color/JGGGrey2" app:strokeWidth="1dp" />
public class JobDetailImageCarouselCell extends RecyclerView.ViewHolder {
private Context mContext;
public CarouselView carouselView;
public ArrayList<String> imageArray = new ArrayList<>();
public JobDetailImageCarouselCell(View itemView, Context context) {
super(itemView);
mContext = context;
carouselView = itemView.findViewById(R.id.detail_images_carousel_view);
}
public ImageListener imageListener = new ImageListener() {
@Override
public void setImageForPosition(int position, ImageView imageView) {
Picasso.with(mContext)
.load(imageArray.get(position))
.placeholder(R.mipmap.appointment_placeholder)
.into(imageView);
}
};
}
http://www.meridians2.com/jggdev/Content/Images/Attachment/xbmhvbl3.jpg