Android Question Widget: Button with bitmap

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
I created a widget with some buttons.
I want to set an image on the background of these buttons, but even if I set all the related properties (see attacched file), the buttons are still with the normal text.

What's wrong?
 

Attachments

  • btProp.PNG
    btProp.PNG
    8.3 KB · Views: 212

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Yes, but it can also be one only
 
Last edited:
Upvote 0

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Sorry Erel, now it is clear.
So how can I simulate the click of the button? Or something similar
 
Upvote 0

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
I replaced the button with an ImageView and I tried to use this code:
B4X:
ToastMessageShow("ciao" ,False)
rv.SetImage("iv1", LoadBitmap(File.DirAssets, "and_acc_pressed.png"))
rv.UpdateWidget

That's ok!
 
Upvote 0
Top