Exemplo n.º 1
0
 @Override
 public void getOutline(View view, Outline outline) {
   outline.setOval(
       view.getPaddingLeft(),
       view.getPaddingTop(),
       view.getWidth() - view.getPaddingRight(),
       view.getHeight() - view.getPaddingBottom());
 }
Exemplo n.º 2
0
 @Override
 public void getOutline(View view, Outline outline) {
   outline.setOval(0, 0, width, height);
 }
Exemplo n.º 3
0
 @Override
 public void setOval(int left, int top, int right, int bottom) {
   outline.setOval(left, top, right, bottom);
 }
Exemplo n.º 4
0
 @Override
 public void setOval(Rect rect) {
   outline.setOval(rect);
 }
 @Override
 public final void getOutline(View view, Outline outline) {
   outline.setOval(0, 0, mSize, mSize);
 }