Merge pull request #160 from yangyxd/master

调整搜索栏效果
pull/164/head
kunfei 5 years ago committed by GitHub
commit 92e2276cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      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,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.SearchView xmlns:android="http://schemas.android.com/apk/res/android" <androidx.appcompat.widget.SearchView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/search_view" android:id="@+id/search_view"
android:theme="?attr/actionBarStyle" android:theme="?attr/actionBarStyle"
@ -9,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:defaultQueryHint="搜索"
app:queryBackground="@null" app:queryBackground="@null"
app:submitBackground="@color/transparent" /> app:submitBackground="@null"
app:defaultQueryHint="搜索"/>

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

@ -20,6 +20,7 @@
<color name="transparent10">#10000000</color> <color name="transparent10">#10000000</color>
<color name="transparent30">#30000000</color> <color name="transparent30">#30000000</color>
<color name="transparent10">#10000000</color>
<color name="highlight">#d3321b</color> <color name="highlight">#d3321b</color>

Loading…
Cancel
Save