Search code examples
stylesborderbasic4android

Adding and styling border to a button or label in B4A (basic4android) with script?


I'm new to B4A. I want to add border to a button and change it's color with writing script in activity module, in B4A. What should I do? Tnx


Solution

  • You need to create a ColorDrawable and assign it to the button

    Dim cd As ColorDrawable cd.Initialize(Colors.Green, 5dip) Btn.background = cd