简体   繁体   中英

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

您需要创建一个ColorDrawable并将其分配给按钮

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM