MitchBu Well-Known Member Licensed User Longtime User Jun 30, 2019 #1 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 ?
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 Jun 30, 2019 #2 MitchBu said: 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 ? Click to expand... B4X: Canvas.DrawColor(Colors.Transparent) Upvote 0
MitchBu said: 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 ? Click to expand... B4X: Canvas.DrawColor(Colors.Transparent)
Erel B4X founder Staff member Licensed User Longtime User Jun 30, 2019 #3 Check this: [B4X] [XUI] Badger - Add badges to views Upvote 0
MitchBu Well-Known Member Licensed User Longtime User Jun 30, 2019 #4 Brandsum said: B4X: Canvas.DrawColor(Colors.Transparent) Click to expand... Thank you, but it simply erases the whole button Upvote 0
Brandsum said: B4X: Canvas.DrawColor(Colors.Transparent) Click to expand... Thank you, but it simply erases the whole button
MitchBu Well-Known Member Licensed User Longtime User Jun 30, 2019 #5 I was reinventing the wheel again. The Badger class is much simpler. Thank you Erel Upvote 0