Android Question Widget: Button with bitmap

Discussion in 'Android Questions' started by imgsimonebiliato, Jul 6, 2015.

  1. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed 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?
     

    Attached Files:

  2. DonManfred

    DonManfred Expert Licensed User

    you have two images? img_acc.bmp and img_Acc.png?
     
  3. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Yes, but it can also be one only
     
    Last edited: Jul 7, 2015
  4. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

  5. Erel

    Erel Administrator Staff Member Licensed User

  6. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Sorry Erel, now it is clear.
    So how can I simulate the click of the button? Or something similar
     
  7. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    I replaced the button with an ImageView and I tried to use this code:
    Code:
    ToastMessageShow("ciao" ,False)
    rv.SetImage(
    "iv1"LoadBitmap(File.DirAssets, "and_acc_pressed.png"))
    rv.UpdateWidget
    That's ok!
     
Loading...