136 Commits

Author SHA1 Message Date
pekingme
8204856dd4 [Token][Color] Upgraded to v0.170 for tonal surface colors.
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
rightnao
e3b255b3a0 [Docs] Crosslink github docs in javadocs
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
pekingme
9f1caa2c64 [Tokens] Upgraded to v0.162.
PiperOrigin-RevId: 517446114
2023-03-20 21:23:07 +00:00
pekingme
23dc14ca3a [Tokens] Updated to v0.157.
PiperOrigin-RevId: 505978081
2023-01-31 20:01:13 +00:00
rightnao
f0053fd3f9 [BottomAppBar] Change Bottom App Bar to place FAB through y translation rather than through margins
Resolves https://github.com/material-components/material-components-android/issues/3097

PiperOrigin-RevId: 500806426
2023-01-11 22:52:59 +00:00
pekingme
2019bf90be [Tokens] Upgraded to version v0.147.
PiperOrigin-RevId: 492551875
2022-12-02 18:34:12 -05:00
pekingme
17e3581642 [Tokens] Upgraded to v0.145
PiperOrigin-RevId: 492291163
2022-12-02 15:11:37 +00: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
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
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
rightnao
1322e61c4c [BottomAppBar] Add attribute to remove shadow on container
resolves https://github.com/material-components/material-components-android/issues/2953

PiperOrigin-RevId: 476451267
2022-09-26 22:13:07 +00:00
pekingme
1ef53e2b37 [Tokens] Upgraded to v0.126 for 1p and 3p.
PiperOrigin-RevId: 475355503
2022-09-20 12:59:30 -04:00
rightnao
c5fadac827 Automated g4 rollback of changelist 469291824
PiperOrigin-RevId: 469334903
2022-08-24 14:40:40 -07:00
rightnao
fdd8dae982 [BottomAppBar][BottomNavigationView] Update motion specs for show/hide bar
PiperOrigin-RevId: 469291824
2022-08-24 14:38:54 -07:00
rightnao
63f98bf5f9 [BottomAppBar] Small bugs and padding adjustments
resolves https://github.com/material-components/material-components-android/issues/2879

PiperOrigin-RevId: 464840315
2022-08-04 14:31:53 -04:00
rightnao
53b3001396 [BottomAppBar] Changing default Material3 theme to follow M3 specs
PiperOrigin-RevId: 459785651
2022-07-08 13:32:47 -07:00
rightnao
f2f588af82 [BottomAppBar] Token integration
PiperOrigin-RevId: 457554326
2022-06-27 17:26:37 -04:00
pekingme
cc317e15d7 [Tokens] Included parent display group names in the output file comments.
PiperOrigin-RevId: 457503467
2022-06-27 17:25:31 -04:00
rightnao
f2423de558 [BottomAppBar] Add attribute to remove embedded FAB elevation
PiperOrigin-RevId: 457084450
2022-06-27 20:08:08 +00:00
rightnao
88a73ebb8e [BottomAppBar] Add fab end margin attribute
PiperOrigin-RevId: 456907281
2022-06-24 20:25:00 +00:00
rightnao
397e48f279 [BottomAppBar] Add menu alignment attribute
PiperOrigin-RevId: 456848323
2022-06-24 20:23:47 +00:00
pekingme
4188995b11 [Tokens][BottomAppBar] Generated resources from tokens.
PiperOrigin-RevId: 456827093
2022-06-24 20:20:47 +00:00
rightnao
cab45dd1df [BottomAppBar] Add new anchor mode attribute for FAB that has an embedded option
PiperOrigin-RevId: 455660518
2022-06-23 18:33:35 +00:00
rightnao
21f9b0ff25 [BottomAppBar] Add a callback for whenever bottom view hides/unhides through scrolling
PiperOrigin-RevId: 450449206
2022-05-24 13:13:10 -04:00
hunterstich
722756e389 [BottomAppBar] Updated FAB alignment mode slide animation to use new motion attributes.
PiperOrigin-RevId: 449287560
2022-05-17 22:15:22 -04:00
Material Design Team
cfc00aa5a3 Update android core class definitions across material
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
Material Design Team
a487c89185 Internal change
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
pekingme
9de9319b1e [Resources] Added styles in res-public.
PiperOrigin-RevId: 403451624
2021-10-18 15:31:13 -04:00
serniebanders
227d489303 [M3][Docs] Update bottomappbar documentation to describe M3 themes/styles.
Additionally exposes M3 bottomappbar styles in res-public

PiperOrigin-RevId: 395771546
2021-09-15 12:29:05 -07:00
conradchen
34740b6fdf [BottomAppBar] Support showing/hiding immediately
Adds APIs to show/hide bottom app bar immediately.

Resolves https://github.com/material-components/material-components-android/issues/2230

PiperOrigin-RevId: 394267535
2021-09-01 17:09:18 -04:00
serniebanders
167b1986e7 [M3] BottomAppBar component styles
PiperOrigin-RevId: 393779583
2021-08-30 15:27:17 -04:00
conradchen
ac1caf460a [BottomAppBar] Fix default style not being applied
The constructors was not properly cascaded.

Resolves https://github.com/material-components/material-components-android/issues/424

PiperOrigin-RevId: 385155453
2021-07-22 11:54:28 -04:00
Maxwell
3bb0911d1b [BottomAppBar] Add functions for checking (STATE_SCROLLED_UP | STATE_SCROLLED_DOWN)
Resolves https://github.com/material-components/material-components-android/pull/2279

GIT_ORIGIN_REV_ID=93704406cbf827eddf9273b5f4b2e8a3cb467c03
PiperOrigin-RevId: 384775019
2021-07-15 12:34:59 -04:00
haodong
e3343326ab [MaterialToolbar & BottomAppBar] Updated navigationIconTint implementation to mutate drawable to prevent tinting drawable globally
Resolves https://github.com/material-components/material-components-android/issues/2207

PiperOrigin-RevId: 375130975
2021-05-21 14:12:02 -07:00
haodong
0ed7c7675e [BottomAppBar] Adding the attr to set the color of navigation icon.
PiperOrigin-RevId: 370999656
2021-04-29 14:49:59 -04:00
hunterstich
b4cca5b8a4 [FAB] Update FAB to use motion theming for show/hide animation.
PiperOrigin-RevId: 368831990
2021-04-16 18:03:35 -04:00
marianomartin
8e9b680893 [BottomAppBar] change cornersize to float to avoid truncation errors
PiperOrigin-RevId: 367430538
2021-04-08 20:42:46 -04:00
marianomartin
ef8ad4dff4 [BottomAppBar] Support fab with rounded corners in cradle
PiperOrigin-RevId: 364483537
2021-03-24 10:29:38 -04:00
hunterstich
8be3efc199 [BottomAppBar] Updated FAB Alignement and menu replacement to fix different length menu res translation x bug
PiperOrigin-RevId: 326652655
2020-08-14 15:08:25 -04:00
marianomartin
049ad022a6 Delete components build.gradle files
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07:00
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
hunterstich
d4a5702319 [BottomAppBar] Update menu replacement animation to coordinate with fab alignment animation.
When calling both setFabAlignmentMode and replaceMenu, the fab alignment animation and menu animation were not properly coordinating. replaceMenu causes a call to onLayout, which immediately updates the menu's translationX, causeing the menu to jump to its final position. This adds a condition to skip the menu position update if a menu animatior is running.

Additionally, the menu's contents were immediately being swapped making the animation look jumpy. This CL also as a method to update the fab alignment and menu resource at the same time so a coordinated animation of: fab scale out/slide start - > menu fade out -> menu replaced -> menu fade in -> fab scale/slide finish, can be run.

PiperOrigin-RevId: 316860005
2020-06-17 18:37:51 -07:00
Material Design Team
76ffe35fef Cleanup
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
cketcham
246b56faef Prevent the FAB from being moved up when anchored to BottomAppBar
PiperOrigin-RevId: 293211000
2020-02-04 17:33:39 -05:00
cketcham
6e340c49d4 Fix BottomAppBarTopEdgeTreatment bug caused by large negative vertical offset
While some small negative values for vertical offset do work, this use case is currently not supported. Most negative values result in the cutout being drawn incorrectly. This also adds a new exception to help clarify the crash in the future.

Resolves https://github.com/material-components/material-components-android/issues/906

PiperOrigin-RevId: 292148159
2020-01-29 16:15:04 -05:00
Material Design Team
6405635df4 Handle horizontal system insets for BottomAppBar.
Previously only the bottom inset (navigation bar) would add extra padding to the BottomAppBar which avoided overlapping with the bottom inset when drawing edge-to-edge. A problem arises if the device is rotated horizontally. The FAB (or sometimes the ActionMenuView in RtL layouts) would overlap with the right inset, making usage impossible.

This CL adjusts the FAB and ActionMenuView X translations when necessary to avoid the horizontal system insets. Two new stylable attributes have been added to enable/disable this behavior, analogous to the existing attribute for bottom padding.

PiperOrigin-RevId: 286419669
2019-12-19 15:45:44 -05:00
haodong
7823e88bb0 Forward fix lint error.
PiperOrigin-RevId: 281150048
2019-11-19 10:30:54 -08:00
cketcham
67491fca21 Add paddingBottomSystemWindowInsets to public attrs and update documentation
PiperOrigin-RevId: 281120848
2019-11-19 10:28:31 -08:00
cketcham
b9f8ee94b3 Adding option to enable and disable bottom inset padding for BottomAppBar
Resolves https://github.com/material-components/material-components-android/issues/580

This adds the paddingBottomSystemWindowInsets attribute which is a databinding extension that will probably be part of https://github.com/chrisbanes/insetter

PiperOrigin-RevId: 277139485
2019-11-01 13:28:40 -07:00