Skip to content

Commit

Permalink
[Catalog][Search] search bar scrolls away with content
Browse files Browse the repository at this point in the history
Resolves #3875

This is one step towards resolving #3103. There's still a thin grey line from the search bar underneath the status bar when it scrolls up, but it's a big improvement from before, where the search bar entirely overlapped with the status bar when scrolling.

GIT_ORIGIN_REV_ID=c65c225a1f66db798084d753fc497a1865cafe7a
PiperOrigin-RevId: 588797889
  • Loading branch information
manabu-nakamura authored and raajkumars committed Dec 7, 2023
1 parent 5843e61 commit 392acf9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@
android:id="@+id/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true">
android:fitsSystemWindows="true"
app:liftOnScroll="false">

<com.google.android.material.search.SearchBar
android:id="@+id/cat_search_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/cat_searchbar_hint">
android:hint="@string/cat_searchbar_hint"
app:layout_scrollEffect="compress">
</com.google.android.material.search.SearchBar>
</com.google.android.material.appbar.AppBarLayout>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,20 @@
android:id="@+id/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true">
android:fitsSystemWindows="true"
app:liftOnScroll="false">

<com.google.android.material.search.SearchBar
android:id="@+id/open_search_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/cat_searchbar_hint">
android:hint="@string/cat_searchbar_hint"
app:layout_scrollEffect="compress">
</com.google.android.material.search.SearchBar>

<com.google.android.material.tabs.TabLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent">
android:layout_height="wrap_content">

<com.google.android.material.tabs.TabItem
android:text="@string/cat_searchbar_tabs_label_explore"
Expand Down

0 comments on commit 392acf9

Please sign in to comment.