Search in sources :

Example 1 with MediaStoreSignature

use of com.bumptech.glide.signature.MediaStoreSignature in project glide by bumptech.

the class RecyclerAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(ListViewHolder viewHolder, int position) {
    MediaStoreData current = data.get(position);
    Key signature = new MediaStoreSignature(current.mimeType, current.dateModified, current.orientation);
    requestBuilder.clone().apply(signatureOf(signature)).load(current.uri).into(viewHolder.image);
}
Also used : MediaStoreSignature(com.bumptech.glide.signature.MediaStoreSignature) Key(com.bumptech.glide.load.Key)

Aggregations

Key (com.bumptech.glide.load.Key)1 MediaStoreSignature (com.bumptech.glide.signature.MediaStoreSignature)1