http://bbs.csdn.net/topics/390485215

 

这种方法只是两个颜色块相减而已

<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:andro >
 
    <!-- 连框颜色值 -->
    <item>
        <shape>
            <solid android:color="#000000" />
        </shape>
    </item>
    <!-- 主体背景颜色值 -->
    <item
        android:top="1dp"
        android:left="1dp"
        android:right="1dp">
        <shape>
            <solid android:color="#ffffff" />
        </shape>
    </item>
</layer-list>

  

 

另一种方法:

最好的方法 就是加一个imageview

 

相关文章:

  • 2022-01-04
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2021-11-11
  • 2021-12-14
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案