Skip to content
maydin edited this page Jan 19, 2013 · 3 revisions

This is an ImageView which is drawable. You can draw lines on this ImageView by touch event. There is a sample Activity in the repository that uses this custom view. I made some contributions to this.

Drawable ImageView

setBitmap(Bitmap img):You can change the Bitmap of the ImageView with this method.

undo():You can undo the drawings with this method.

setColor(int alpha, int red, int green, int blue):You can change the color of the stroke with this method.

setWidth(float w):You can change the width of the stroke with this method.

Clone this wiki locally