Marcus' Homepage

Avoid border radius in scrolling views

I quick hint if you’re using Appcelerator Titanium: avoid using the borderRadius-property on views that you add onto scrolling views. This includes TableViews, ScrollViews and probably ScrollableViews.

Since drawing rounded corners involves (I assume) a lot of calculations, this will make it feel choppy when you scroll the view.

The alternative is to use an image instead, like a PNG. Since it’s just a raster graphic, the rendering will be much quicker which means the scrolling will be smoother, even if it’s transparent.