30 Commits

Author SHA1 Message Date
rightnao
d06eed1429 [Search][A11y] Allow keyboard navigation between searchbar and other components
PiperOrigin-RevId: 811869184
2025-09-30 18:24:09 +00:00
rightnao
43f2b908a1 [SearchBar] Add attribute to control when to impose max width based on a percentage of available width in parent
PiperOrigin-RevId: 758280412
2025-05-14 19:14:06 +00:00
rightnao
be09936c88 [Search] Add a placeholder textview to Searchbar that keeps track of searchview edit text in order to gracefully fade it out in searchview collapse animation
PiperOrigin-RevId: 752904135
2025-04-30 17:51:14 +00:00
rightnao
c2c660b8bc [SearchBar] Update centering layout logic to account for padding and content insets
PiperOrigin-RevId: 751477468
2025-04-28 15:14:45 +00:00
rightnao
917022188b [SearchBar] Fix long centered text overlapping with menu items
PiperOrigin-RevId: 743214367
2025-04-07 14:31:08 +00:00
rightnao
548c15cb40 [SearchBar][SearchView] Add maxWidth attribute and fix SearchBar/SearchView animations to be more flexible in hierarchy
PiperOrigin-RevId: 742311708
2025-04-03 19:23:16 +00:00
rightnao
04c56f6eb3 [SearchBar] Fix issue with a custom center view pushing out centered text
PiperOrigin-RevId: 741587300
2025-03-31 14:46:16 +00:00
rightnao
36b285c9e3 [SearchBar] Add a lift on scroll color to SearchBar when used with AppBarLayout
PiperOrigin-RevId: 740478154
2025-03-26 16:20:02 +00:00
dsn5ft
09d2566f32 [MaterialToolbar][SearchBar] Update AppCompat dependency to 1.7.0 stable and remove inflateMenu dispatch pausing now that the fix has landed in AppCompat
PiperOrigin-RevId: 738894593
2025-03-21 17:01:11 +00:00
dsn5ft
0697f6fe89 [Gradle] Enable non transitive R classes (resource namespacing) and fix errors
PiperOrigin-RevId: 738871402
2025-03-20 18:34:33 +00:00
rightnao
ea01f2ac1f [Searchbar] Fix centering text when set by the search view
PiperOrigin-RevId: 735817759
2025-03-17 18:38:07 +00:00
rightnao
0641ee59e1 [Searchbar] Add textCentered attribute
PiperOrigin-RevId: 733486317
2025-03-11 17:43:47 +00:00
pubiqq
bc2fdeadaf [Internal] Prefer platform methods to compat ones
Resolves https://github.com/material-components/material-components-android/pull/4532

GIT_ORIGIN_REV_ID=180dec736f2521579e483317a4d537629d8f247b
PiperOrigin-RevId: 715494344
2025-01-15 18:06:07 +00:00
dsn5ft
97d957c6c6 [SearchBar] Fix a11y issue where SearchBar darkens when focused with TalkBack
PiperOrigin-RevId: 679614664
2024-10-01 18:40:14 +00:00
pubiqq
23aca03255 [Internal] Remove pre-Lollipop checks
Resolves https://github.com/material-components/material-components-android/pull/4266

GIT_ORIGIN_REV_ID=1de7808e66dd6666c893217c76c7499afe2df6a3
PiperOrigin-RevId: 669688797
2024-09-03 13:31:29 +00:00
pubiqq
204811089d [Internal] Replace deprecated androidx.core.view.* methods
Resolves https://github.com/material-components/material-components-android/pull/4180

GIT_ORIGIN_REV_ID=8e4ec29abacc33cde748b8f07f0ba5c251cef395
PiperOrigin-RevId: 656004130
2024-07-25 19:09:36 +00:00
pubiqq
510881a469 [Internal] Stop using deprecated androidx.core.view.* methods
Resolves https://github.com/material-components/material-components-android/pull/4117

GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
Ga\u00ebtan Muller
b3fe6a7f61 [Cleanup] Remove redundant version checks for api <= 19.
Resolves https://github.com/material-components/material-components-android/pull/3849

GIT_ORIGIN_REV_ID=47bb2fcc8031740e5a7d4f741f1ada2af025e126
PiperOrigin-RevId: 632154861
2024-05-09 18:46:02 +00:00
Material Design Team
fb441e6cb8 [Search] Exclude icons from search bar handwriting bounds
PiperOrigin-RevId: 617405112
2024-03-20 22:32:30 +00:00
Material Design Team
be1395bcef [SearchBar] Set the editable property within SearchBar's AccessibilityNodeInfo representation.
PiperOrigin-RevId: 572589922
2023-10-12 11:03:15 -07:00
raajkumars
4e5166f2b7 Automated g4 rollback of changelist 546349642
PiperOrigin-RevId: 551552652
2023-07-27 22:51:06 +00:00
rightnao
e3b255b3a0 [Docs] Crosslink github docs in javadocs
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
raajkumars
c15a323140 [SearchBar] Added support to set a default content description if a content description is not set explicitly.
PiperOrigin-RevId: 546349642
2023-07-11 19:35:33 +00:00
raajkumars
203d5ec3a3 [M3][Search] Improve performance by preventing item change notifications during inflation.
PiperOrigin-RevId: 522612855
2023-04-10 15:05:58 +00:00
pekingme
cf006c5e10 [Search] Made SearchBar and SearchView's container colors configurable in XML style.
PiperOrigin-RevId: 522468493
2023-04-10 15:03:01 +00:00
raajkumars
cdda1fc66e [Search] Added support to pass toolbar style.
PiperOrigin-RevId: 519876161
2023-03-28 16:18:25 +00:00
raajkumars
e2c8cbadb8 [M3][SearchBar] Fixed issue that caused the wrong component to be focused on automatically when talkback is active.
PiperOrigin-RevId: 493910945
2022-12-08 19:47:30 +00:00
raajkumars
d0b616c56d [M3][SearchBar][SearchView] Updated search bar/view UI to match spec and cleaned up the API.
PiperOrigin-RevId: 492278545
2022-12-01 16:31:36 -05:00
raajkumars
978ffdf0aa [M3][SearchBar][SearchView] Renamed search style attributes to add "material" prefix.
PiperOrigin-RevId: 490260853
2022-11-22 12:36:54 -05:00
raajkumars
d1bacf55db [M3][SearchBar] Added new SearchBar and SearchView components
PiperOrigin-RevId: 490002827
2022-11-21 13:02:32 -05:00