设置控件的背景的stroke显示指定边

不显示右边框
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
     <item
         android:right="-2dp">
          <shape>
               <solid android:color="#ffffff"/>
               <stroke
                   android:width="1dp"
                   android:color="#ff0000"/>
          </shape>
     </item>
</layer-list>

猜你喜欢

转载自blog.csdn.net/riqthen/article/details/81085993