how to change color of pen on button click in android
问题 I have made a simple android program for singletouch paint, in it I have aut 4 types of pens of different sizes and I want is based on that image I want to change strokesize of pen. I have tried as below, please help me: main.java public class MainActivity extends Activity implements OnClickListener { ImageView pen, color; SingleTouchView mDrawView; RelativeLayout layout, layout1; ImageView remove; ImageView eraser; LinearLayout pens; HorizontalScrollView myplate; private Paint mPaint,