开发者

how to set different color of border of rectangle using stroke

开发者 https://www.devze.com 2023-01-19 19:23 出处:网络
How about, if just to get top border or left 开发者_如何转开发border using stroke. Is it possible to set different width for different borders<?xml version=\"1.0\" encoding=\"utf-8\"?>

How about, if just to get top border or left 开发者_如何转开发border using stroke. Is it possible to set different width for different borders


<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
 <solid android:color="#FAFAFA"/>
 <stroke android:width="1px" android:color="#cccccc" />
 <corners android:bottomRightRadius="10dp" android:bottomLeftRadius="10dp" 
     android:topLeftRadius="0dp" android:topRightRadius="0dp"
/>

</shape>

Hope you can see the xml i am using. Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消