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
Asked
Active
Viewed 1,621 times
1 Answers
3
You need to create a ColorDrawable and assign it to the button
Dim cd As ColorDrawable
cd.Initialize(Colors.Green, 5dip)
Btn.background = cd

andyr00d
- 71
- 3
-
I used initialize2(BackgroundColor,BorderRadius,BorderWidth,BorderColor). Your answer was very helpful... thanks a lot. – Soroosh Noorzad Aug 16 '17 at 13:29