CustomView

A CustomView with custom attributes

create a custom view set view background drawnable, color and gradient in xml. set view corner radius.

Attributes

attribute name attribute description
backgroundSolidColor View background color.
backgroundDrawable View backgound drawable.
gradientOrientation View gradient orientation.
startGradientColor View start gradient color.
endGradientColor View start gradient color.
cornerRadius View corner radius.