statelistdrawable

  1. S

    Android Question Losing rounded corners on ColorDrawable

    Within "Sub Activity_Create(FirstTime As Boolean)"... I have created the following ColorDrawable: Dim enabled, pressed As ColorDrawable enabled.Initialize(Colors.ARGB(255,63,63,63), 100) pressed.Initialize(Colors.ARGB(255,100,100,100), 100) And used it as such: Dim sld_Up...
  2. 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...
  3. 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
  4. 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...
  5. 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...
Top