Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
imageViewProfile = (ImageView) findViewById(;
int arcWidth = 15;
mAnimatedDrawable = new CircularAnimatedDrawable(imageViewProfile, arcWidth, Color.WHITE);
int offset = (imageViewProfile.getLayoutParams().width - imageViewProfile.getLayoutParams().height) / 2;
int left = offset;
int right = imageViewProfile.getLayoutParams().width - offset;
int bottom = imageViewProfile.getLayoutParams().height;
int top = 0;
mAnimatedDrawable.setBounds(left, top, right, bottom);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment