Search in sources :

Example 1 with LoaderImageView

use of com.elyeproj.loaderviewlibrary.LoaderImageView in project android by nextcloud.

the class OCFileListAdapter method onViewAttachedToWindow.

@Override
public void onViewAttachedToWindow(@NonNull RecyclerView.ViewHolder holder) {
    if (holder instanceof ListGridImageViewHolder) {
        LoaderImageView thumbnailShimmer = ((ListGridImageViewHolder) holder).getShimmerThumbnail();
        if (thumbnailShimmer.getVisibility() == View.VISIBLE) {
            thumbnailShimmer.setImageResource(R.drawable.background);
            thumbnailShimmer.resetLoader();
        }
    }
}
Also used : LoaderImageView(com.elyeproj.loaderviewlibrary.LoaderImageView)

Aggregations

LoaderImageView (com.elyeproj.loaderviewlibrary.LoaderImageView)1