Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ivAdd.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
- @Override
- public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
- if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) {
- ivAdd.setClipToOutline(true);
- Outline outline = new Outline();
- outline.setOval(0,0,ivAdd.getWidth(),ivAdd.getHeight());
- ivAdd.setOutline(outline);
- }
- ivAdd.removeOnLayoutChangeListener(this);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement