Back to project page scala1_android.
The source code is released under:
Copyright (c) 2012, Magnetic Bear Studios Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditio...
If you think the Android project scala1_android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.koushikdutta.urlimageviewhelper; //from w ww. j a v a 2 s. c o m import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; class WrapperDrawable extends Drawable { public WrapperDrawable(BitmapDrawable drawable) { mDrawable = drawable; } BitmapDrawable mDrawable; public WrapperDrawable(WrapperDrawable drawable) { this(drawable.mDrawable); } @Override public void draw(Canvas canvas) { mDrawable.draw(canvas); } @Override public int getOpacity() { return mDrawable.getOpacity(); } @Override public void setAlpha(int alpha) { mDrawable.setAlpha(alpha); } @Override public void setColorFilter(ColorFilter cf) { mDrawable.setColorFilter(cf); } @Override public void setBounds(int left, int top, int right, int bottom) { mDrawable.setBounds(left, top, right, bottom); } @Override public int getIntrinsicHeight() { return mDrawable.getIntrinsicHeight(); } @Override public int getIntrinsicWidth() { // TODO Auto-generated method stub return mDrawable.getIntrinsicWidth(); } }