Android Question Clear a canvas ?

MitchBu

Active Member
Licensed User
I have created a small red badge displayed in the corner of a button (see picture below).

I do that with a canvas associated with the button.

My problem is that I also need under certain conditions to remove that badge.

How can I proceed ?


 

Brandsum

Well-Known Member
Licensed User
I have created a small red badge displayed in the corner of a button (see picture below).

I do that with a canvas associated with the button.

My problem is that I also need under certain conditions to remove that badge.

How can I proceed ?


B4X:
Canvas.DrawColor(Colors.Transparent)
 

MitchBu

Active Member
Licensed User
I was reinventing the wheel again.

The Badger class is much simpler.

Thank you Erel :)
 
Top