Android 設置顯示部分邊框,如左側邊框不顯示
效果圖如上:右側的價格顯示區域,左側是沒有邊框的,用來和左邊的黑卡價圖標進行對接,拼接好的效果如下。
參考代碼(可依此擴展):
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:left="-1dp">
<shape>
<stroke
android:color="@color/color_383838"
android:width="0.5dp"/>
<corners android:radius="2dp"/>
</shape>
</item>
</layer-list>