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
marianomartin
115313c0c0
Expose a class for themeoverlay in style
...
This moves functionality from ThemeEnforcement into a stand alone class.
Resolves https://github.com/material-components/material-components-android/issues/665
PiperOrigin-RevId: 275481343
2019-10-21 10:24:19 -04:00
cketcham
10c0f62972
Fix FAB placement relative to the BottomAppBar when system insets change
...
PiperOrigin-RevId: 274158808
2019-10-21 10:19:14 -04:00
marianomartin
215a839598
Internal cleanup
...
PiperOrigin-RevId: 267504117
2019-09-12 13:48:16 -04:00
cketcham
7bb525ff59
Update usages of ShapeAppearanceModel to use Builder pattern
...
PiperOrigin-RevId: 266144471
2019-08-29 15:39:51 -04:00
cketcham
89026898dc
Fix ActionMenuView position in RTL for BottomAppBar
...
PiperOrigin-RevId: 265997768
2019-08-29 15:35:04 -04:00
marianomartin
0d4515cb46
Internal cleanup
...
PiperOrigin-RevId: 265971745
2019-08-29 14:59:20 -04:00
dniz
72cfef981b
Rename prefix mtrl_ to material_ in public resources
...
PiperOrigin-RevId: 265729121
2019-08-29 12:16:13 -04:00
cketcham
06b15017f6
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264851045
2019-08-26 11:39:59 -04:00
connieshi
5a20fb0d4d
Rename TransformationListener to TransformationCallback.
...
PiperOrigin-RevId: 259827772
2019-07-25 13:12:10 -04:00
dniz
cc73c2a630
Update TODOs
...
PiperOrigin-RevId: 259535844
2019-07-23 11:21:39 -04:00
dniz
0512f776c5
Remove sub-package AndroidManifest.xml files from lib directory
...
PiperOrigin-RevId: 258390736
2019-07-16 13:18:32 -04:00
isabellekim
a628bf516b
Revert the library to compile with Java 7: revert lambdas, add necessary casts, and make some variables final.
...
Continue compile shrine demo, catalog, and tests with Java 8.
PiperOrigin-RevId: 257874888
2019-07-15 19:19:23 -04:00
dniz
68ddfee0ed
Remove Material's legacy androidx core_ui and core_utils dependencies in favor of more granular dependencies (coordinatorlayout, graphics, interpolator, customview)
...
PiperOrigin-RevId: 257452569
2019-07-10 15:17:12 -04:00
dniz
37534561f2
Add component styles that swap between primary and surface styles depending on light vs dark theme
...
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application
PiperOrigin-RevId: 256208965
2019-07-03 14:11:49 -04:00
marianomartin
152f05adbc
Internal cleanup
...
PiperOrigin-RevId: 256180803
2019-07-03 14:09:17 -04:00
cketcham
c6c4ec4849
Fix FAB insets when anchored to BAB.
...
PiperOrigin-RevId: 256167953
2019-07-03 14:08:08 -04:00