feat: 优化代码

pull/160/head
kunfei 5 years ago
parent f204bcd7a7
commit 1c4c2c07fa
  1. 6
      app/src/main/res/drawable/bg_searchview.xml
  2. 2
      app/src/main/res/layout/view_search.xml

@ -3,7 +3,9 @@
<!-- 角度 --> <!-- 角度 -->
<corners android:radius="35dp"/> <corners android:radius="35dp"/>
<!-- 填充色 --> <!-- 填充色 -->
<solid android:color="@color/background_menu"/> <solid android:color="@color/transparent30" />
<!-- 描边 设置线宽及颜色 --> <!-- 描边 设置线宽及颜色 -->
<stroke android:color="@color/background_menu" android:width="0.5dp"/> <stroke
android:color="@color/transparent30"
android:width="0.5dp" />
</shape> </shape>

@ -10,6 +10,6 @@
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:imeOptions="actionSearch" android:imeOptions="actionSearch"
app:queryBackground="@drawable/bg_searchview" app:queryBackground="@null"
app:submitBackground="@color/transparent" app:submitBackground="@color/transparent"
app:defaultQueryHint="搜索"/> app:defaultQueryHint="搜索"/>
Loading…
Cancel
Save