imgsimonebiliato Well-Known Member Licensed User Longtime User Jul 6, 2015 #1 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 8.3 KB · Views: 213
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?
DonManfred Expert Licensed User Longtime User Jul 6, 2015 #2 you have two images? img_acc.bmp and img_Acc.png? Upvote 0
imgsimonebiliato Well-Known Member Licensed User Longtime User Jul 7, 2015 #3 Yes, but it can also be one only Last edited: Jul 7, 2015 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 8, 2015 #5 See the supported views in the tutorial: https://www.b4x.com/android/forum/threads/android-home-screen-widgets-tutorial-part-i.10166/ Upvote 0
See the supported views in the tutorial: https://www.b4x.com/android/forum/threads/android-home-screen-widgets-tutorial-part-i.10166/
imgsimonebiliato Well-Known Member Licensed User Longtime User Jul 9, 2015 #6 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 Jul 9, 2015 #7 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
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!