Android rounded rectangle with border without background color, android rounded corner
We often use rounded rectangle, which is also a popular style .. however, at work today, a button with a border but no background color in the rounded rectangle was designed to help the girl cut the image, but she didn't want to bother her. She kept her up and said she could do it, the results have been completed for a long time. Now let's take a look at it and avoid this problem in the future... ()
<? Xml version = "1.0" encoding = "UTF-8"?> <Shape xmlns: android = "http://schemas.android.com/apk/res/android" android: shape = "rectangle"> <! -- Green Border rounded rectangle --> <gradient android: endColor = "# ffffff" android: startColor = "# ffffff"/> <solid android: color = "# ffffff"/> <stroke android: width = "@ dimen/dp2" android: color = "#95d5b2"/> <corners android: bottomLeftRadius = "@ dimen/dp15" android: bottomRightRadius = "@ dimen/dp15" android: topLeftRadius = "@ dimen/dp15" android: topRightRadius = "@ dimen/dp15"/> </shape>