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