2920 Commits

Author SHA1 Message Date
afohrman
2ab5430fed [Adaptive] [Side Sheet] Renamed SheetEdge#RIGHT to SheetEdge#EDGE_RIGHT.
PiperOrigin-RevId: 493093973
2022-12-06 15:21:53 -05:00
pekingme
14fa66a2a9 [TimePicker] Integrated M3 tokens.
PiperOrigin-RevId: 493059854
2022-12-05 15:13:23 -05:00
Material Design Team
ce68ec6193 [M3][Color] Added framework color roles support for content color
PiperOrigin-RevId: 493027582
2022-12-05 15:12:27 -05:00
rightnao
319467123f [TabLayout] Fix bug with setScrollPosition not updating indicator due to onLayout call drawing the indicator below the selected tab.
Resolves https://github.com/material-components/material-components-android/issues/3101

PiperOrigin-RevId: 492562100
2022-12-02 18:38:40 -05:00
pekingme
0f0b93c0b1 [Snackbar] Integrated tokens.
PiperOrigin-RevId: 492560860
2022-12-02 18:37:32 -05:00
minwang1
7bbbe3925e [Slider] Added API for setting the radius of active/inactive tick in xml and Java.
Resolves https://github.com/material-components/material-components-android/pull/2994
Resolves https://github.com/material-components/material-components-android/issues/1920

GIT_ORIGIN_REV_ID=7bf15fb545496cb8e63f8b6ecf653229b1f203f8
PiperOrigin-RevId: 492557754
2022-12-02 18:36:26 -05:00
pekingme
40c8b5c9c6 [Menu] Integrated tokens.
PiperOrigin-RevId: 492552660
2022-12-02 18:35:26 -05:00
pekingme
2019bf90be [Tokens] Upgraded to version v0.147.
PiperOrigin-RevId: 492551875
2022-12-02 18:34:12 -05:00
afohrman
0f9c6fcab8 [Adaptive] [Side Sheet] Made SheetDialog abstract base class and Sheet interface package-private.
PiperOrigin-RevId: 492534084
2022-12-02 18:33:21 -05:00
Material Design Team
94c73cc3af [M3][Color] Internal changes
PiperOrigin-RevId: 492454046
2022-12-02 16:02:11 +00:00
pekingme
989d574dbb [Color] Added tonal surface color theme attributes and updated themes.
PiperOrigin-RevId: 492316991
2022-12-02 16:01:22 +00:00
dsn5ft
a241ee90ab [SearchView] Refactored status bar spacer edge-to-edge detection to work based on insets
This fixes the detection when using WindowCompat.setDecorFitsSystemWindows, and we shouldn't need to be checking specific edge-to-edge flags anymore

PiperOrigin-RevId: 492309763
2022-12-02 15:59:39 +00:00
pekingme
17e3581642 [Tokens] Upgraded to v0.145
PiperOrigin-RevId: 492291163
2022-12-02 15:11:37 +00:00
pekingme
b9963a5212 [Tokens][Android] Omitted more comments when configuration specifies no comments.
PiperOrigin-RevId: 492290497
2022-12-02 15:04:22 +00:00
pekingme
8eb4aeb6f8 [Tokens] Internal update.
PiperOrigin-RevId: 492290020
2022-12-02 15:03:36 +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
afohrman
6476acde65 [Adaptive] [Side Sheet] Add @RestrictTo annotations to restrict SheetEdge annotation interface.
PiperOrigin-RevId: 492269491
2022-12-01 16:30:32 -05:00
afohrman
b384b9b535 [Adaptive] [Side Sheet] Made SideSheetBehavior extendable.
PiperOrigin-RevId: 492256730
2022-12-01 16:17:30 -05:00
Material Design Team
ef76670909 [M3][Color] Interal changes
PiperOrigin-RevId: 492161895
2022-12-01 16:15:12 -05:00
rightnao
4bdfb8b216 [BottomAppBar] Request layout for FAB when BAB changes so that FAB will always be aware of BAB changes
PiperOrigin-RevId: 492023349
2022-12-01 16:06:18 -05:00
raajkumars
dc2e973046 [M3][SearchBar][SearchView] Updated style to match updated M3 spec.
PiperOrigin-RevId: 491980034
2022-11-30 17:32:26 -05:00
pekingme
8ee6c00f73 [Tokens] Upgraded to v0.142
Added lStar CSLs for new neutral palettes in v31 and above.

PiperOrigin-RevId: 491693724
2022-11-30 17:31:11 -05:00
rightnao
84b7bc3320 [TabLayout] Fixing bug with animation flicker when using tabs with ViewPager2
PiperOrigin-RevId: 491460655
2022-11-29 15:21:12 -05:00
conradchen
7b8faef12b [TopAppBar] Fix input rectangle being modified in onRequestChildRectangleOnScreen()
Resolves https://github.com/material-components/material-components-android/issues/3054

PiperOrigin-RevId: 491440304
2022-11-28 17:17:40 -05:00
pekingme
bf7b3c275f [Card] Integrated M3 tokens.
PiperOrigin-RevId: 490569453
2022-11-28 17:16:16 -05:00
pekingme
03bd77fae1 [Badge] Integrated component tokens.
PiperOrigin-RevId: 490569205
2022-11-28 17:15:29 -05:00
pekingme
2f7a70045d [Tooltip] Integrated tokens.
Also fixed an error in the token metadata.

PiperOrigin-RevId: 490564125
2022-11-23 15:43:28 -05:00
hunterstich
8aab29ad97 Automated g4 rollback of changelist 487605338
PiperOrigin-RevId: 490469343
2022-11-23 15:14:05 -05:00
pekingme
12ef329276 [Tokens] Upgraded to v0.141
PiperOrigin-RevId: 490324728
2022-11-23 15:13:20 -05:00
pekingme
b2b546b205 [Tokens] Internal updates.
PiperOrigin-RevId: 490295053
2022-11-23 15:11:19 -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
pfthomas
b813b2b441 [MaterialDatePicker] Update elevation to match specs
Resolves https://github.com/material-components/material-components-android/issues/2987

PiperOrigin-RevId: 490248736
2022-11-22 12:36:03 -05:00
leticiars
b08257bce3 [Divider] Change shouldDrawDivider from private to protected to allow for more user flexibility.
PiperOrigin-RevId: 490032010
2022-11-22 12:30:53 -05:00
raajkumars
2977a75f29 [SearchBar][SearchView] Removed M3 search style references from Material theme.
PiperOrigin-RevId: 490020028
2022-11-22 12:30:07 -05:00
raajkumars
d1bacf55db [M3][SearchBar] Added new SearchBar and SearchView components
PiperOrigin-RevId: 490002827
2022-11-21 13:02:32 -05:00
Material Design Team
2351fd9f6c [M3][Color] Updated Builder class for content color
PiperOrigin-RevId: 489981392
2022-11-21 16:15:36 +00:00
Material Design Team
4619f31bc7 [M3][Color] Implement content color with resources loader
PiperOrigin-RevId: 489967833
2022-11-21 16:00:04 +00:00
rightnao
4a0e1a0cdb [TabLayout] Fix bug with selected tab text appearance when swiping in viewpager.
PiperOrigin-RevId: 489559352
2022-11-18 22:36:16 +00:00
pubiqq
cb1905dbff [TabLayout] Fix default tabTextAppearance
Resolves https://github.com/material-components/material-components-android/pull/3085

GIT_ORIGIN_REV_ID=5c801bb6b6e9df227094106dedc5defa24b99077
PiperOrigin-RevId: 489517504
2022-11-18 16:57:53 -05:00
afohrman
7a706cc82c [Adaptive] [Side Sheet] Add STATE_HIDDEN to SideSheetBehavior#getState javadoc.
STATE_HIDDEN was missing from the list of possible state constants returned by getState().

PiperOrigin-RevId: 489292973
2022-11-18 16:56:39 -05:00
hunterstich
8d8a0d14ae [Dialog][DatePicker][TimePicker] Updated enter/exit animation to use fade pattern and motion tokens.
Added xml implementations of the Material Fade pattern (https://github.com/material-components/material-components-android/blob/master/docs/theming/Motion.md#fade) and updated all dialogs to use the new animators for enter and exit animations.

PiperOrigin-RevId: 489271559
2022-11-18 16:55:59 -05:00
pfthomas
4046525b20 [MaterialDatePicker] Improve inputs validation
PiperOrigin-RevId: 489269023
2022-11-18 16:55:22 -05:00
rightnao
1cdb371c30 [BottomSheet] Update motion attributes for bottom sheet dialog animation
PiperOrigin-RevId: 487605720
2022-11-18 16:54:23 -05:00
hunterstich
0b72e3ad4f Automated g4 rollback of changelist 487228839
PiperOrigin-RevId: 487605338
2022-11-18 16:53:43 -05:00
pfthomas
b1bd580d7e [NavigationDrawer] Updated active text label to use a bold typeface.
PiperOrigin-RevId: 487600688
2022-11-18 16:53:12 -05:00
rightnao
d5b41c185f [ExtendedFloatingActionButton] Add a extendToWrapContent attribute that can disable the current eFAB behavior of extending to wrap content (thus allowing extend to return to its original width before shrinking)
Resolves https://github.com/material-components/material-components-android/issues/3006

PiperOrigin-RevId: 487376415
2022-11-10 18:23:28 +00:00
rightnao
857f481edd [TabLayout] Fixing bug with animation cancelling if tab is double-tapped
resolves https://github.com/material-components/material-components-android/issues/3069

PiperOrigin-RevId: 487376299
2022-11-10 18:22:41 +00:00
hunterstich
3fc3ec1153 [Switch] Update animations to use motion themeing.
PiperOrigin-RevId: 487228839
2022-11-10 18:22:05 +00:00
afohrman
1653055b2c [Adaptive] [Side Sheet] Changed modal side sheet shape to large.
PiperOrigin-RevId: 487001390
2022-11-10 18:21:26 +00:00
pfthomas
dff70c062d [MaterialDatePicker][a11y] Improve TalkBack focus order when selecting a day
Make RecyclerView non-scrollable to allow focusing away from it instead of paginating to previous/next month.

PiperOrigin-RevId: 486936286
2022-11-09 22:14:37 +00:00