Audio Album Covers in recyclerview

10 views
Skip to first unread message

Rob Taylerson

unread,
Nov 19, 2021, 7:43:06 AM11/19/21
to Glide
I am having trouble loading album covers in a music player app.
When using Glide i code in onBindViewHolder i code it as follows:

val uri: Uri = ContentUris.withAppendedId((Uri.parse("content://media/external/audio/albumart"),albumId)
Glide.with(context)
.load(uri)
into(holder.cover_image_view)

but only a small percentage of the albums are shown with a cover image but i know that the other albums have cover images as i can load them using ContentResolver.getThumbnailImage(....)

Anyone else used Glide to load album covers into a recyclerview?
Reply all
Reply to author
Forward
0 new messages