feat: 优化代码

pull/160/head^2
kunfei 5 years ago
parent 1c4c2c07fa
commit 3185c95335
  1. 25
      app/src/main/res/layout/view_search.xml
  2. 1
      app/src/main/res/values-night/colors.xml
  3. 1
      app/src/main/res/values/colors.xml

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.SearchView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/search_view"
android:theme="?attr/actionBarStyle"
android:background="@drawable/bg_searchview"
android:layout_width="match_parent"
android:layout_height="34dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:imeOptions="actionSearch"
<androidx.appcompat.widget.SearchView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/search_view"
android:theme="?attr/actionBarStyle"
android:background="@drawable/bg_searchview"
android:layout_width="match_parent"
android:layout_height="34dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:imeOptions="actionSearch"
app:defaultQueryHint="搜索"
app:queryBackground="@null"
app:submitBackground="@color/transparent"
app:defaultQueryHint="搜索"/>
app:submitBackground="@color/transparent" />

@ -10,6 +10,7 @@
<color name="night_mask">#69000000</color>
<color name="transparent10">#10ffffff</color>
<color name="transparent30">#30ffffff</color>
<color name="bg_divider_line">#363636</color>

@ -18,6 +18,7 @@
<color name="background_menu">@color/md_grey_200</color>
<color name="transparent">#00000000</color>
<color name="transparent10">#10000000</color>
<color name="transparent30">#30000000</color>
<color name="highlight">#d3321b</color>

Loading…
Cancel
Save