Android Question SwiftButton Corner Radius not working for me?

Unobtainius

Active Member
Licensed User
Longtime User
I drop my swiftbuttons onto a layout using the designer and set the corner radius
No matter what I set it to, it always remains the same when I run the layout
It looks fine in the WYSIWYG designer
I deploy to samsung TABA, TABS, and Note 8 with the same result on all devices
The pictures pretty much say it all, but if you require more information I am happy to supply it

WYSIWYG
Screenshot_20191212-114858.jpg

Deployed application layout


Screenshot_20191212-114947.jpg
 

Unobtainius

Active Member
Licensed User
Longtime User
Update with most current update of XUI View library (v2.19). This version already has CornerRadius custom property

Thank you for the advice. I didnt even think of that and must keep it in mind for other libraries.
Unfortunately I still have the same issue with 2.19 active
The picture below is of my swiftbutton at the top and a panel below
Both have the same attributes; height, width, colour, corner radius = 50, border colour = White, border width = 2

corneradius.jpg

It's really no biggy. Just wondering why the properties do not seem to work for me?
 

Attachments

  • corneradius.jpg
    corneradius.jpg
    30.6 KB · Views: 255
Upvote 0

Unobtainius

Active Member
Licensed User
Longtime User
You shouldn't post such large images. It is difficult to read your post.
Please accept my apologies Erel, I'm quite new to this
 
Upvote 0

rraswisak

Active Member
Licensed User
Longtime User
I believe border color and border size not implemented in SwiftButton. As this lib is wrap from here, the original one also does not has border around it.

Make sure you set Corners Radius in Custom Property part as describe here:

upload_2019-12-13_9-20-48.png
 
Upvote 0

Unobtainius

Active Member
Licensed User
Longtime User
I believe border color and border size not implemented in SwiftButton. As this lib is wrap from here, the original one also does not has border around it.

Make sure you set Corners Radius in Custom Property part as describe here:

View attachment 86302

On reflection, I believe your answer is indeed correct. The swiftbutton has neither border nor corner radius properties.
When I see the custom properties below there is no way to enter either

CustomProperties.PNG


I was mistakenly thinking that because the base background properties for both allowed entry, that they would be applied. I came to this conclusion because I had noticed on other controls, that although they displayed same base properties, they were not active. The properties below

baseProperties.PNG


From now on I will ignore these properties completely if the custom properties over ride them as in the case of Color.
Thanks rraswisak for taking the time to point this out to me
 
Upvote 0

rraswisak

Active Member
Licensed User
Longtime User
When I see the custom properties below there is no way to enter either
Then maybe you still use previous version of XUI Views rather than 2.19

upload_2019-12-13_13-12-9.png


There are two Corner Radius properties, but one in Drawale part is not used (not work), SwiftButton use Corners Radius property from Custom Properties above.

To indicate that you use correct version of the libs, please check it from Library Manager;

upload_2019-12-13_13-15-1.png


One more thing, XUI Views now part of internal library, you should replace the internal lib with current update of XUI View that you downloaded from here

Good luck
 
Last edited:
Upvote 0

Unobtainius

Active Member
Licensed User
Longtime User
I created a new layout today and the properties appear just as you describe.
Sometimes one cannot wee the wood for the trees
Thank you very much for persevering with me rraswisak :)
 
Upvote 0
Top