I am using onDraw within customView. I am plotting two line. Red and Green.
@Override
public void onDraw(Canvas canvas)
{
super.onDraw(canvas);
canvas.DrawLine(0, 0, 700, 200, Green);
canvas.DrawLine(0,0, 700, 250, Red);
}
On the button Click , I want to make Red Line InVisible and next click visible. I can,t redraw again.The line I have plotted , I have to make it visible and Invisible
Any Idea?