Android Rounded Rectangle has a border without background color

Source: Internet
Author: User

We often use rounded rectangles, which are now popular styles. But today in the work, encountered to write rounded rectangle has a border but no background color button, originally wanted to let sister help transduction, but do not want to trouble sister, oneself support, said can do, the result made long time dish fix, now to everyone see, later to avoid this trouble ... ()

<?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>

Android Rounded Rectangle has a border without background color

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.