Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
imageViewProfile = (ImageView) findViewById(R.id.image_profile);
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);
mAnimatedDrawable.setCallback(imageViewProfile);
mAnimatedDrawable.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.