CircularDrawable extends Drawable { @Override public int getOpacity() { return PixelFormat.TRANSLUCENT; } CircularDrawable(Bitmap bitmap);  CircularDrawable(Bitmap bitmap, float explicitDiameter); float getDiameter(); void setBorder(float borderWidth, int borderColor); void clearBorder(); @Override void draw(Canvas canvas); @Override int getOpacity(); @Override void setAlpha(int alpha); @Override void setColorFilter(ColorFilter cf); @Override int getIntrinsicHeight(); @Override int getIntrinsicWidth();  }
@Test public void testCorrectOpacity() { Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); CircularDrawable drawable = new CircularDrawable(bitmap); Assert.assertEquals(PixelFormat.TRANSLUCENT, drawable.getOpacity()); }