-
Notifications
You must be signed in to change notification settings - Fork 377
corners
ZieIony edited this page Apr 5, 2015
·
1 revision
Methods: get/setCornerRadius(float)
Type: dimension
Used for specifying radius of corners of a view. Can be used to create views and layouts with rounded corners. Rounded corners affects contents of a view/layout, not only its background. It means that it's possible to create CardView-like layouts very easily.
View's corners are rounded using texturing. This method produces nice, antialiased results, but is slow and disables view's animated drawables. Layout's corners are rounded using clipping. Clipping is much faster and supports animations, but doesn't support antialiasing.
Copyright 2015 Marcin Korniluk 'Zielony'