im using this code inside a recyclerviewadapter. the glide version is 4.11.0
fun bindSet(movieList: MovieListItem) {
this.movieList = movieList
Glide.with(context)
.load(movieList.imageUrl)
.placeholder(R.drawable.splashimg)
.into(view.iv_app_image)
}
it work but not how it should be like. when i launch the app it does not instantly load the placeholder imave that i set
to be viewed while loading the images. instead it wait until it load at least 1 image then it view the placeholder imave.
that make the placeholder delay to be viewed which is useless since im trying to use the placeholder image to be viewed
instantly instead of showing an empty view first then load an image. any kind of image does not matter placeholder image nor real image.
so how to let the placeholder image instantly load into the imageview then it load the images it get from urls?
here is the xml layout
`the imageview
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/iv_app_image"
app:riv_border_color="#EFECEC"
android:layout_width="110dp"
android:src="@drawable/splashimg"
app:riv_corner_radius="23dp"
android:layout_height="110dp"
app:riv_border_width="1dp"
android:scaleType="centerCrop"
android:layout_gravity="center"
android:foregroundGravity="center"
/>`
and here is the recyclerview
`<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/card_view"
style="@style/CardView"
android:layout_marginBottom="4dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="4dp"
card_view:cardCornerRadius="2dp"
card_view:cardElevation="2dp"
>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/main_item_app_recycler_view1"
android:layout_width="match_parent"
android:layout_height="164dp"
android:layout_below="@id/header"
android:layout_marginTop="9dp" />
</RelativeLayout>
</androidx.cardview.widget.CardView>`
pls help bumptech
im using this code inside a recyclerviewadapter. the glide version is 4.11.0
it work but not how it should be like. when i launch the app it does not instantly load the placeholder imave that i set
to be viewed while loading the images. instead it wait until it load at least 1 image then it view the placeholder imave.
that make the placeholder delay to be viewed which is useless since im trying to use the placeholder image to be viewed
instantly instead of showing an empty view first then load an image. any kind of image does not matter placeholder image nor real image.
so how to let the placeholder image instantly load into the imageview then it load the images it get from urls?
here is the xml layout
`the imageview
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/iv_app_image"
app:riv_border_color="#EFECEC"
android:layout_width="110dp"
android:src="@drawable/splashimg"
app:riv_corner_radius="23dp"
android:layout_height="110dp"
app:riv_border_width="1dp"
android:scaleType="centerCrop"
android:layout_gravity="center"
android:foregroundGravity="center"
/>`
and here is the recyclerview
`<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/card_view"
style="@style/CardView"
pls help bumptech