Fixed
Status Update
Comments
lp...@google.com <lp...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
Author: Max Alfonso-Ying <
Link:
Implement full screen search bar using dialog
Expand for full commit details
Implement full screen search bar using dialog
Overview of new components:
* SearchBar - visually equivalent to previous overload, except does not
apply the padding/window insets of a top bar.
* CollapsedSearchBar - One half of SearchBar. Just a text field wrapped
in a Surface.
* FullScreenSearchBarLayout - private implementation. Equivalent to
existing SearchBarImpl + SearchBarLayout but slightly cleaned up.
Predictive back support will be added in future CL.
* ExpandedFullScreenSearchBar - FullScreenSearchBarLayout wrapped in a dialog.
Bug: b/283311462
Test: n/a
Relnote: n/a
Change-Id: I71145c5528a2c0c5ee97eca75dda0904ea91108b
Files:
- M
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/SearchBar.kt
Hash: 7ccfa611287f4388caf0b0224b4b662e9a5f44af
Date: Tue Nov 19 22:59:52 2024
na...@google.com <na...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
Author: Max Alfonso-Ying <
Link:
Introduce SearchBarState
Expand for full commit details
Introduce SearchBarState
This is part 1 of the search bar refactor. A new
InputField overload has been added to use this state.
Other component refactors will come in later CLs.
Bug: b/283311462
Test: n/a
Relnote: n/a
Change-Id: Ibb563b25de5ba76cec7612655b9b632c5f0e99d4
Files:
- M
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/SearchBar.kt
Hash: 4f31090de77bee9f8e1e355e78125b8228e0985b
Date: Fri Aug 09 02:31:50 2024
Description
Jetpack Compose version: 1.3.1 Jetpack Compose component used: androidx.compose.material:material
Android Studio Build: Build #AI-222.4345.14.2221.9321504, built on November 22, 2022
Kotlin version: 1.7.20
Steps to Reproduce or Code Sample to Reproduce:
It seems that insets are first laid out without any insets, the next composition gets the real insets. However as the pull to refresh state is being remembered the offset can never be updated. This causes the pull to refresh indicator to be below the statusbar in our case.
A workaround for now is getting the insets from the activity window insets, however this should not be the proper workaround.
Example code for adding statusbar padding:
It seems to me that the pull to refresh state also needs to recompose on new offsets.