简书链接:每日技巧分享android编辑框底部用shape背景加边框
文章字数:18,阅读全文大约需要1分钟

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8"?>

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item
android:bottom="1dp"
android:top="0dp">
<shape>
<solid android:color="@color/transparent" />
</shape>
</item>
<item
android:bottom="1dp"
android:left="-1dp"
android:right="-1dp"
android:top="-1dp">
<shape>

<stroke
android:width="0.5dp"
android:color="@color/young_pink" />
</shape>
</item>
</layer-list>