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
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
rightnao
e3b255b3a0
[Docs] Crosslink github docs in javadocs
...
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +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
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
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
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
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
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
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
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
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
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
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
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
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
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
marianomartin
ad8003d8e9
Internal cleanup
...
PiperOrigin-RevId: 255441067
2019-07-03 13:56:54 -04:00
dniz
5df3bebd63
Update elevation overlays to be based absolute elevation, factoring in the elevation of all parent views
...
Will follow-up with TabLayout absolute elevation separately
Resolves https://github.com/material-components/material-components-android/issues/381
PiperOrigin-RevId: 255404830
2019-07-03 13:55:49 -04:00
marianomartin
367b295624
Internal cleanup
...
PiperOrigin-RevId: 254414602
2019-06-24 17:12:42 -04:00
Material Design Team
b23d8058c3
Automated g4 rollback of changelist 253789519
...
PiperOrigin-RevId: 253856871
2019-06-24 16:47:11 -04:00