B4J Question Can I put image in button node?

rossati

Active Member
Licensed User
Longtime User
I apologize for not be able to found how create buttons with images.
The node buttons doesn't accept SetBackgroundImage function.
My be via style property?
Thanks
 

Chris2

Active Member
Licensed User
Longtime User
You can also do it via the designer. Set the Background Properties>Drawable to BitmapDrawable, and pick the image you want to use.
You need to add the image to the Files tab in the Designer first
buttonimagesettings.png
 
Upvote 0
Top