21 lines
788 B
XML
21 lines
788 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!--
|
||
输入框联想下拉的背景。
|
||
关键:顶部 padding 必须为 0。PopupWindow 定位时会用背景的 top padding 抵消
|
||
dropDownVerticalOffset,若这里写 6dp,6dp 的偏移会被吃光,下拉框就贴住输入框。
|
||
左右保留内边距让文字与滚动条避开圆角;底部留白让最后一行不贴圆角。
|
||
-->
|
||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||
android:shape="rectangle">
|
||
<solid android:color="@color/surface" />
|
||
<corners android:radius="12dp" />
|
||
<stroke
|
||
android:width="1dp"
|
||
android:color="@color/card_stroke" />
|
||
<padding
|
||
android:left="6dp"
|
||
android:top="0dp"
|
||
android:right="6dp"
|
||
android:bottom="6dp" />
|
||
</shape>
|