view_toolbar_search: Drop background in favor of divider

Looks much better and cleaner

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-06-12 14:57:23 +05:30
parent 27c5d657ef
commit 0232c4117c
3 changed files with 18 additions and 4 deletions

View File

@@ -34,12 +34,20 @@
android:id="@+id/layout_view_toolbar"
layout="@layout/view_toolbar_search" />
<com.google.android.material.divider.MaterialDivider
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/layout_view_toolbar" />
<com.airbnb.epoxy.EpoxyRecyclerView
android:id="@+id/recycler"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/layout_view_toolbar"
app:itemSpacing="@dimen/margin_normal" />
android:layout_below="@+id/divider"
android:paddingTop="@dimen/padding_normal"
app:itemSpacing="@dimen/margin_normal"
tools:listitem="@layout/view_app_list" />
</RelativeLayout>
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton

View File

@@ -33,10 +33,16 @@
android:id="@+id/layout_toolbar_search"
layout="@layout/view_toolbar_search" />
<com.google.android.material.divider.MaterialDivider
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/layout_toolbar_search" />
<com.airbnb.epoxy.EpoxyRecyclerView
android:id="@+id/recycler"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/layout_toolbar_search" />
android:layout_below="@+id/divider" />
</RelativeLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@@ -43,7 +43,7 @@
android:layout_centerVertical="true"
android:layout_toStartOf="@id/img_action_secondary"
android:layout_toEndOf="@id/img_action_primary"
android:background="@drawable/bg_search"
android:background="@null"
android:hint="@string/search_hint"
android:imeOptions="flagNoExtractUi|actionSearch"
android:inputType="text"