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...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice