1. LucaMs

    B4A Library [B4X] B4XThreeState - B4XView

    I needed something similar to StateListDrawable B4A but cross-platform (B4X). Since I was in a hurry, I settled for developing it just for the images. Obviously you can replace the 3 images (for the 3 states: ENABLED, DISABLED, PRESSED) via properties. Events: Click and LongClick. I don't...
  2. R

    Android Question Adding StatelistDrawable button in code

    I am using StatelistDrawable buttons, setup in the designer, but how would I add these buttons in code, not using the designer? StatelistDrawable ColorDrawable Color: #FFFFFFFF Corner radius: 6 Border color: #00FFFFFF BorderWidth: 0 Pressed Drawable: Color: Default Corner radius: 0 RBS
  3. R

    Android Question Difference DefaultDrawable and StateListDrawable buttons regarding button edge

    Trying to place button on a panel and set the gap between those buttons. Noticed there seems to be a difference between DefaultDrawable and StateListDrawable buttons as how the edge of the button shows on the panel. These 2 layout scripts show the difference: For StateListDrawable buttons this...
  4. M

    Android Question [SOLVED] StateListDrawable on 2 buttons

    Hi! I'm using StateListDrawable on 2 buttons and when I press Button1 the Button2 changes to pressed, too. But, if I press Button2 the Button1 works ok. Also, the button1 doesn't show with the correct width, it seems like the Button2 forces its width. This is the code: Dim benabled, bpressed...