Android Question Clear a canvas ?

MitchBu

Well-Known Member
Licensed User
Longtime 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 ?


badgebtn.jpg
 

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 ?


badgebtn.jpg
B4X:
Canvas.DrawColor(Colors.Transparent)
 
Upvote 0
Top