我是靠谱客的博主 自信灰狼,这篇文章主要介绍shape.xml-边框-圆角-颜色,现在分享给大家,希望可以做个参考。

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- 实现边框 -->
    <stroke
        android:width="0.01dp"
        android:color="#A0522D" />


    <padding
        android:bottom="10dp"
        android:left="10dp"
        android:right="10dp"
        android:top="10dp" />
    

</shape>


<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- 实现边框 -->
    <stroke
        android:width="0.1dp"
        android:color="#A0522D" />


    <padding
        android:bottom="10dp"
        android:left="10dp"
        android:right="10dp"
        android:top="10dp" />
    
    <solid android:color="#00000000"/>
    
    <corners
        android:bottomLeftRadius="10dp"
        android:bottomRightRadius="10dp"
        android:topLeftRadius="10dp"
        android:topRightRadius="10dp" />


</shape>





<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >


    <stroke
        android:dashGap="3dp"
        android:dashWidth="6dp"
        android:width="1dp"
        android:color="#DCDCDC" />
<!-- 虚线 -->


</shape>


最后

以上就是自信灰狼最近收集整理的关于shape.xml-边框-圆角-颜色的全部内容,更多相关shape内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(114)

评论列表共有 0 条评论

立即
投稿
返回
顶部