Android rounded rectangle with border without background color, android rounded corner

Source: Internet
Author: User

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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.