同步插件源代码并补齐标准项目文件
This commit is contained in:
20
src/main/res/drawable/bg_dropdown_input.xml
Normal file
20
src/main/res/drawable/bg_dropdown_input.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user