Android Question Cast a Button to a B4XView

mmanso

Active Member
Licensed User
Longtime User
Hi All,

I've created 20 buttons using code (not the designer). They're of type Button.

I need to put a. Badge on them and I've reached the XUI Badger library which accepts a B4XView to apply the Badge.

How can I convert a button created in the code to B4XView? I've read in the XUI - Cross platform UI video that after creating a button in the designer, I can simply change it's definition to be a B4XView. I'm not figuring out how to do that if the button is created in the code.

Thanks for the help.
 

mmanso

Active Member
Licensed User
Longtime User
Hi there,

When I declare something like that, I get this error:

Undeclared variable 'button' is used before assigned any value
 
Upvote 0
Top