I can't load big size of image like 3456 * 4608
goldstar0415 opened this issue · 2 comments
goldstar0415 commented
<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" />
goldstar0415 commented
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);
}
};
}