Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CircularLoading {
- private Context context;
- public CircularLoading(Context context) {
- this.context = context;
- }
- public CircularProgressDrawable initLoading() {
- CircularProgressDrawable drawable = new CircularProgressDrawable(context);
- drawable.setStrokeWidth(5f);
- drawable.setCenterRadius(30f);
- drawable.start();
- return drawable;
- }
- }
- Glide.with(context)
- .load(imagePath)
- .placeholder(new CircularLoading(context).initLoading())
- .into(holder.movieImage);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement