AvatarBuilderOptionImageView.java 1.39 KB
package com.bitstrips.imoji.abv3.option;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.Path.Direction;
import android.graphics.RectF;
import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;

public class AvatarBuilderOptionImageView
  extends AppCompatImageView
{
  private final int a;
  
  public AvatarBuilderOptionImageView(Context paramContext)
  {
    super(paramContext);
    this.a = paramContext.getResources().getDimensionPixelSize(2131361919);
  }
  
  public AvatarBuilderOptionImageView(Context paramContext, AttributeSet paramAttributeSet)
  {
    super(paramContext, paramAttributeSet);
    this.a = paramContext.getResources().getDimensionPixelSize(2131361919);
  }
  
  protected void onDraw(Canvas paramCanvas)
  {
    int i = paramCanvas.getWidth();
    int j = paramCanvas.getHeight();
    int k = paramCanvas.save();
    Path localPath = new Path();
    localPath.addRoundRect(new RectF(0.0F, 0.0F, i, j), this.a, this.a, Path.Direction.CW);
    paramCanvas.clipPath(localPath);
    super.onDraw(paramCanvas);
    paramCanvas.restoreToCount(k);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/abv3/option/AvatarBuilderOptionImageView.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */