Open mohopa opened 9 years ago
Hey guys,
Override the PEWImageView like this:
`public class ParalaxImageView extends PEWImageView{
public ParalaxImageView(Context context) {
super(context);
}
public ParalaxImageView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public ParalaxImageView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
public void setImageResource(int resId) {
super.setImageResource(resId);
invalidate();
}
@Override
public void setImageDrawable(Drawable drawable) {
super.setImageDrawable(drawable);
invalidate();
}
@Override
public void setImageBitmap(Bitmap bm) {
super.setImageBitmap(bm);
invalidate();
}
}`
And it will work fine.
I'll submit a pull request soon.
hi I try to setImageBitmap() on PEWImageView but it not work,also not work on setImageDrawable() and all method for setBackground. just setImageResource() worked, but I need to modify image then set it as image resource. how I can do that? thank you very much :)