w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Create a clear button to clear canvas android

You are creating a new instance of DrawCircle every time doIt is called.

The old instance is still there. So you need to either remove the old view from f1, or get the exact same instance of DrawCircle you created before, set the new color, and then call invalidate() on the DrawCircle to force the redraw.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.