Code example for BitmapDrawable

Methods: getOpacity

0
image.setColorFilter(cf);
  } 
 
  @Override public int getOpacity() { 
    return image.getOpacity();
  } 
 
  @Override protected void onBoundsChange(Rect bounds) {
    super.onBoundsChange(bounds);
 
    image.setBounds(bounds);
    if (placeholder != null) {
      // Center placeholder inside the image bounds 
      setBounds(placeholder);
    } 
  } 
 
  private void setBounds(Drawable drawable) {
    Rect bounds = getBounds();
Connect your IDE to all the code out there  Get Codota for Java