Appcelerator中视图的形状

时间:2017-08-05 08:55:10

标签: view appcelerator shape

我在appcelerator中设计了一个矩形视图。我想使这个视图的宽度变为圆形,如下图所示。谁能告诉我这是怎么做到的?enter image description here

1 个答案:

答案 0 :(得分:2)

You can use the property borderRadius for that. But keep in mind that it might not look smooth on all devices.

An interesting article about round views is available here: https://medium.com/all-titanium/make-super-smooth-rounded-borders-on-android-titanium-9accbe924fdb