调整搜索栏效果

pull/160/head
yangyxd 5 years ago
parent 1c4c2c07fa
commit 2481eb4403
  1. 4
      app/src/main/res/drawable/bg_searchview.xml
  2. 2
      app/src/main/res/layout/view_search.xml
  3. 1
      app/src/main/res/values-night/colors.xml
  4. 1
      app/src/main/res/values/colors.xml

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

@ -11,5 +11,5 @@
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:imeOptions="actionSearch" android:imeOptions="actionSearch"
app:queryBackground="@null" app:queryBackground="@null"
app:submitBackground="@color/transparent" app:submitBackground="@null"
app:defaultQueryHint="搜索"/> app:defaultQueryHint="搜索"/>

@ -11,6 +11,7 @@
<color name="night_mask">#69000000</color> <color name="night_mask">#69000000</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>

@ -19,6 +19,7 @@
<color name="transparent">#00000000</color> <color name="transparent">#00000000</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