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
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
cketcham
d81cea337a
Fix FAB insets when anchored to BAB.
...
PiperOrigin-RevId: 253789519
2019-06-18 13:55:37 -04:00
cketcham
bff75f2d3e
Update to lamdas
...
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -04:00
cketcham
1aa7125398
Update BottomAppBar to respect bottom system insets
...
PiperOrigin-RevId: 252394398
2019-06-18 11:49:00 -04:00
cketcham
cb71e2d582
Update BottomAppBar hideOnScroll offset to account for the shadow drawn at the top of the view.
...
PiperOrigin-RevId: 250562675
2019-05-30 13:59:24 -07:00
cketcham
a9f95ecbc7
Update BottomAppBar to react to layout changes in FAB
...
PiperOrigin-RevId: 250527847
2019-05-29 17:01:32 -04:00
Material Design Team
3c5f9f6cb0
Migrate CoordinatorLayout android support libraries to androidx
...
PiperOrigin-RevId: 248819271
2019-05-21 12:03:28 -04:00
dniz
8f622283d1
Remove CSL theme attribute workarounds
...
Also update androidx dependencies to get latest fixes: appcompat to 1.1.0-alpha04 and core to 1.1.0-alpha05
PiperOrigin-RevId: 246804285
2019-05-06 10:34:04 -04:00
cketcham
1df3a6a44d
Update BottomAppBar to reposition the FAB when the vertical offset is changed
...
PiperOrigin-RevId: 245446154
2019-04-29 15:55:06 -07:00
dniz
1f244318d8
Add @hide to all @RestrictTo annotations that are missing it
...
PiperOrigin-RevId: 243646339
2019-04-19 16:29:30 -04:00
cketcham
d1b56c3d1e
Update BottomAppBar to use elevation overlay for dark theme
...
PiperOrigin-RevId: 238534227
2019-03-22 16:10:30 -04:00
marianomartin
01874ad4e9
Change setElevation in MSD to use default offset
...
PiperOrigin-RevId: 236858323
2019-03-08 09:58:58 -05:00
cketcham
1f6314cc2f
Fix menu position bug in BottomAppBar
...
Fixes bug where the MenuView would not be positioned correctly if the first call to replaceMenu() happened after the view was laid out.
PiperOrigin-RevId: 235046970
2019-02-24 14:33:02 -05:00
cketcham
7c72808f96
Fix FAB vertical offset bug when BAB is hidden
...
Because the FAB is anchored to the top of the BAB, the animation which hides the BAB also moves down the FAB. This removes the extra animation for the FAB. Because the two animations were running at the same time, the distance between the FAB and the BAB was being calculated incorrectly. This was causing the BAB to think the FAB was higher than it was which resulted in the cutout being drawn too high.
PiperOrigin-RevId: 233844627
2019-02-24 14:13:07 -05:00
cketcham
9678f62c28
Update BottomAppBar to have basic support for use with ExtendedFloatingActionButton
...
PiperOrigin-RevId: 232301919
2019-02-11 11:11:27 -08:00
dniz
11df79f95c
Clean up Gradle build shorthands for appcompat/androidx libraries
...
PiperOrigin-RevId: 229369959
2019-01-18 14:13:26 -05:00
dniz
a4964594a1
Add MaterialShapeDrawable setElevation(float) and deprecate setShadowElevation(int)
...
PiperOrigin-RevId: 228572421
2019-01-10 17:16:43 -05:00
cketcham
dc72aaeed4
Migrate Gradle build and sources to androidx
...
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
marianomartin
d75fb6513c
Fix constant state in MSD
...
PiperOrigin-RevId: 223802087
2018-12-06 11:46:29 -05:00
Material Design Team
f152b75e1a
Automated g4 rollback of changelist 223558824
...
PiperOrigin-RevId: 223564801
2018-12-06 11:43:02 -05:00
marianomartin
c75482b473
Fix constant state in MSD
...
PiperOrigin-RevId: 223558824
2018-12-06 11:42:42 -05:00
Material Design Team
191bf6c971
Export getActionMenuViewTranslationX() to make subclass be available to customize position of menu view.
...
PiperOrigin-RevId: 223468200
2018-12-06 11:40:11 -05:00
cketcham
ddda11bd2d
Fix slide animation for BottomAppBar
...
PiperOrigin-RevId: 222437688
2018-12-06 11:19:28 -05:00
afohrman
98d4b148d1
Create deep copies of CornerTreatments and EdgeTreatments in ShapeAppearanceModel's copy constructor.
...
Implement Cloneable and override Object#clone() to create deep copies of the corner and edge treatments. The Cloneable method is generally discouraged, but this solution appears to be the most effective solution for our use case because:
- CornerTreatment and EdgeTreatment don't contain mutable fields, so using the native Object#clone() should be fine. This allows us to avoid intervening in the clone() method, which is one of the main reasons to avoid using Obect#clone().
- Since we have to maintain binary compatibility with our 1.0.0 stable release, we have very little wiggle room with which to ensure that we have effective copy() methods in each subclass of CornerTreatment and EdgeTreatment.
PiperOrigin-RevId: 222311453
2018-12-06 11:17:48 -05:00
marianomartin
415e6ea003
Add a cut corners top edge treatment in the BAB demo
...
PiperOrigin-RevId: 222071849
2018-11-26 07:55:59 -05:00
cketcham
88c804ea91
Fix shadow for BottomAppBar so it looks more natural
...
PiperOrigin-RevId: 221534701
2018-11-16 11:58:31 -05:00
cketcham
3d8e2b408c
Stop expanding the clip rect on versions of android that have native shadow support
...
PiperOrigin-RevId: 219478262
2018-11-01 16:17:19 -07:00
dniz
3637c23078
Dark theme color palette
...
PiperOrigin-RevId: 219143246
2018-11-01 16:05:24 -07:00
cketcham
560c982284
Enable shadows for BottomAppBar
...
PiperOrigin-RevId: 218868156
2018-10-28 21:44:27 -04:00
cketcham
2edfef1a6c
Draw compatibility shadows if the shape is concave or native shadows aren't supported.
...
PiperOrigin-RevId: 217689320
2018-10-28 18:28:35 -04:00
dniz
ea40a1d406
Update Toolbar to use new color system
...
PiperOrigin-RevId: 216770087
2018-10-11 18:31:53 -04:00