pekingme
9a2890c249
[Resources] Updated translated string resources.
...
Resolves https://github.com/material-components/material-components-android/issues/4553
PiperOrigin-RevId: 720282586
2025-01-28 19:47:24 +00:00
pubiqq
b8af5185c9
[Search] Expose toolbar customization attributes
...
Resolves https://github.com/material-components/material-components-android/pull/4337
GIT_ORIGIN_REV_ID=c3c917f7bfcaab9e3a36424898cd45951ab06f32
PiperOrigin-RevId: 719283825
2025-01-24 18:41:03 +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
pekingme
4f7bf293ea
[Tokens] Updated token outputs to v13.2.0 and integrated new AppBar tokens.
...
PiperOrigin-RevId: 703208208
2024-12-10 17:57:50 +00:00
pubiqq
c1c19c8b3a
[Internal] Update targetApi suppressions in resources
...
Resolves https://github.com/material-components/material-components-android/pull/4308
GIT_ORIGIN_REV_ID=8016db9460e4e1013e56a50e541406ff356e2837
PiperOrigin-RevId: 702111281
2024-12-04 23:58:23 +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
dsn5ft
3ce7c2bb18
[SearchBar] Update predictive back device corner logic to handle each corner independently to fix issue where bottom corners are incorrectly rounded after canceling back gesture
...
PiperOrigin-RevId: 677788624
2024-09-23 15:10:54 +00:00
pekingme
47cbd7e81a
[Tokens] Upgraded to 10.0.1
...
PiperOrigin-RevId: 676467444
2024-09-20 19:48:02 +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
pekingme
87076dd20b
[Tokens] Upgraded to 8.0.0.
...
PiperOrigin-RevId: 669673113
2024-09-03 13:28:26 +00:00
pekingme
9188b8f6ab
[Tokens] Upgraded to 7.1.0.
...
PiperOrigin-RevId: 669087033
2024-08-30 18:49:53 +00:00
pekingme
b65df32b0f
[Tokens] Upgraded to 7.0.0
...
PiperOrigin-RevId: 668133320
2024-08-28 22:34:40 +00:00
pekingme
8731cad96a
[Tokens] Upgraded to v6.1.0.
...
PiperOrigin-RevId: 665569215
2024-08-21 17:24:43 +00:00
pekingme
da0b738679
[Tokens] Upgraded to v5.0.0.
...
PiperOrigin-RevId: 663358341
2024-08-16 17:33:16 +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
dsn5ft
34adcb0fa1
[SearchView] Restore modal for accessibility and back handling state in onAttachedToWindow() and remove modal for accessibility state in onDetachedFromWindow()
...
Fixes an issue where nothing is focusable in TalkBack after removing SearchView, due to the modal for accessibility behavior
Resolves https://github.com/material-components/material-components-android/issues/4176
PiperOrigin-RevId: 644038017
2024-06-20 18:02:41 +00:00
dsn5ft
d13bfdf3cd
[Predictive Back] Update SearchView and NavigationView to unregister back callbacks when detached from window
...
Resolves https://github.com/material-components/material-components-android/issues/4176
PiperOrigin-RevId: 633969673
2024-05-15 16:58:34 +00:00
dsn5ft
9b6ceac72a
[i18n] Update string translations
...
PiperOrigin-RevId: 633623911
2024-05-14 17:16:18 +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
pfthomas
9b09b693d9
[Tokens] Update tokens to v4.0.0
...
PiperOrigin-RevId: 626141198
2024-04-19 21:18:49 +00:00
dsn5ft
b77b1412a3
[Search] Add start delay to scrim animation during SearchBar to SearchView expand to reduce visual noise
...
PiperOrigin-RevId: 623875803
2024-04-11 20:07:18 +00:00
dsn5ft
b56afa75a9
[SearchView] Update back arrow to be auto mirrored for RTL
...
PiperOrigin-RevId: 622863529
2024-04-09 18:46:12 +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
pekingme
28cc2441d0
[Tokens] Updated to version 2.3.4.
...
PiperOrigin-RevId: 610835532
2024-02-29 08:36:02 -08:00
pekingme
ee7b4bddb4
[Tokens] Added formatting to break long lines and differentiate different comments.
...
PiperOrigin-RevId: 605684816
2024-02-12 18:03:59 +00:00
pekingme
89212044a9
[Tokens] Updated to v0.213.
...
PiperOrigin-RevId: 603749766
2024-02-06 14:30:16 +00:00
pekingme
08d7ded67b
[Tokens] Upgraded to v0.207.
...
PiperOrigin-RevId: 600947836
2024-01-24 21:05:53 +00:00
dsn5ft
ce386e4c20
[Search] Make searchbar_scrolling_view_behavior string public
...
Resolves https://github.com/material-components/material-components-android/issues/3358
PiperOrigin-RevId: 590950516
2023-12-14 18:20:31 +00:00
dsn5ft
198e08cf5e
[i18n] Update string translations for checkbox, search, and sidesheet
...
PiperOrigin-RevId: 582397137
2023-11-14 20:04:14 +00:00
pekingme
4ccaaaa31d
[Tokens] Upgraded to v0.203
...
PiperOrigin-RevId: 579928128
2023-11-08 15:12:21 +00:00
pekingme
637362d597
[Tokens] Upgraded to v0.195
...
PiperOrigin-RevId: 579905417
2023-11-06 20:27:15 +00:00
pekingme
0463c507d7
[Tokens] Upgraded to v0.185
...
PiperOrigin-RevId: 579904837
2023-11-06 20:26:18 +00:00
pekingme
bfee8a74d7
[Tokens] Upgraded to v0.175.
...
PiperOrigin-RevId: 572648883
2023-10-12 11:04:28 -07: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
dsn5ft
a51561d8b8
[SearchView][Predictive Back] Fix issue where predictive back is not enabled in SearchView after rotating the screen or restarting the activity when the SearchView is already expanded
...
Resolves https://github.com/material-components/material-components-android/issues/3594
Resolves https://github.com/material-components/material-components-android/pull/3604
PiperOrigin-RevId: 568869369
2023-10-02 13:35:25 +00:00
dsn5ft
8d83a31b6b
[Predictive Back][Search] Fix issue where modal accessibility is not reset after collapsing search view predictively, which caused the screen to appear frozen when using TalkBack
...
PiperOrigin-RevId: 566750080
2023-09-20 12:29:04 +00:00
pekingme
8204856dd4
[Token][Color] Upgraded to v0.170 for tonal surface colors.
...
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
pekingme
720998dcbd
[SearchBar] Enforced outline variant to use colorSurface as container color.
...
PiperOrigin-RevId: 553337995
2023-08-04 01:03:50 +00:00
raajkumars
4e5166f2b7
Automated g4 rollback of changelist 546349642
...
PiperOrigin-RevId: 551552652
2023-07-27 22:51:06 +00:00
afohrman
f10153257f
[Predictive Back][Search] Fixed UnsupportedOperationException AnimatorSet crash in SearchView.
...
When navigation icon animation is disabled after the predictive back navigation icon animators are initialized, a strange crash happens in `SearchViewAnimatorSet#updateBackProgress` from the call to `AnimatorSet#setCurrentPlayTime()`, in which the button progress `AnimatorSet` duration is 250 but the total duration is 0. This triggers an [`UnsupportedOperationException`](https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/animation/AnimatorSet.java#928 ) with the message: `"Error: Play time should always be in between 0 and duration."`.
Adding an early return from `SearchViewAnimatorSet#updateBackProgress` when navigation animation is disabled appears to fix the crash.
PiperOrigin-RevId: 550885523
2023-07-26 17:13:18 +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
afohrman
f2e70d2d66
[Android U] Replaced BuildCompat#isAtLeastU() method calls with explicit SDK checks for UPSIDE_DOWN_CAKE.
...
Before 1.12.0-alpha01 which was released on 6/7, BuildCompat#isAtLeastU() only returns true if API level is greater than 33 and the version running is a pre-release. Two things happened on 6/7 -- the version became a "platform stable" version, and core library version 1.12.0-alpha01 was released, which changes BuildCompat#isAtLeastU() to return true if the version is 34 and stable.
PiperOrigin-RevId: 540304068
2023-06-14 12:45:51 -07:00
hunterstich
a67a885668
[Predictive Back] Update components to use BackEventCompat
...
Clients should prefer listening to back events using androidx.activity.OnBackPressedCallback which has been updated to forward BackEventCompat objects in androidx.activity:activity:1.8.0-alpha05. This updates component predictive back APIs to take in BackEventCompat objects instead of android.window.BackEvent objects to simplify usage - getting rid of the need for version checks and object conversions.
PiperOrigin-RevId: 540290323
2023-06-14 12:44:53 -07:00
dsn5ft
e69a324a2f
[Predictive Back][Search] Fix issue on Android U where clicking SearchView back button causes SearchBar to disappear and back arrow animation to not run
...
PiperOrigin-RevId: 536876120
2023-06-05 18:25:48 +00:00
dsn5ft
577d23eceb
[Search] Fix expand/collapse animation for non-predictive back cases where rootView bounds are not equal to searchView bounds
...
PiperOrigin-RevId: 530596832
2023-05-09 13:15:20 -04:00
dsn5ft
a93c91a2e2
[Predictive Back][Search] Only use device corner radius if SearchView reaches edge of screen
...
PiperOrigin-RevId: 524283122
2023-04-17 12:17:13 -07:00
Material Design Team
884a4541e2
[Search] Support stylus handwriting in SearchBar
...
PiperOrigin-RevId: 524098693
2023-04-17 12:16:03 -07:00
raajkumars
3029ff0fc4
Automated g4 rollback of changelist 523789226
...
PiperOrigin-RevId: 524046939
2023-04-17 12:12:17 -07:00