48 Commits

Author SHA1 Message Date
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
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
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
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
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
marianomartin
9e36c150c0 Fix most javadocs errors
PiperOrigin-RevId: 216697274
2018-10-11 18:24:53 -04:00
marianomartin
421518656f Remove constructors comments
PiperOrigin-RevId: 216255346
2018-10-11 18:13:07 -04:00
cketcham
e951ecbd1b Add color system support for BottomAppBar
PiperOrigin-RevId: 215374247
2018-10-02 14:54:08 -04:00
cketcham
8bd94e9276 Rename ShapePathModel to ShapeAppearanceModel.
This commit renames ShapePathModel to ShapeAppearanceModel to align with the new shapeAppearance attributes that will be added for shape theming.

PiperOrigin-RevId: 214818189
2018-09-28 16:30:13 -04:00
cketcham
7528288743 Fix BottomAppBar animation bug where calling replaceMenu() will cancel a currently running animation
PiperOrigin-RevId: 211449657
2018-09-07 11:36:50 -04:00
cketcham
664a0a9100 Update FabTransformationBehavior to transform the FloatingActionButton
Rather than just setting the FloatingActionButton to be invisible, we should actually perform the translation transformation on it. This is necessary to allow for other views which may be watching for transformations (such as the BAB) to update.

PiperOrigin-RevId: 211080287
2018-08-31 11:13:50 -04:00
cketcham
d6e4991e78 Fix default FAB animation for BottomAppBar
PiperOrigin-RevId: 210920372
2018-08-31 11:13:24 -04:00
marianomartin
e0e7c51991 BottomAppBar change interpolation to be 0 if fab is not visible
PiperOrigin-RevId: 210912015
2018-08-31 11:13:05 -04:00
marianomartin
8441bb689d Fix BottomAppBar background on Kitkat
PiperOrigin-RevId: 210763753
2018-08-31 11:11:45 -04:00
cketcham
71f5ea1415 Add alternate animations for BottomAppBar mode changes
PiperOrigin-RevId: 210096177
2018-08-28 16:40:25 -04:00
cketcham
18be1b73af Modify BottomAppBar to react to the transformations of the FloatingActionButton
PiperOrigin-RevId: 209988651
2018-08-28 16:37:42 -04:00
marianomartin
585e2fede0 Remove constructor comments
PiperOrigin-RevId: 209762154
2018-08-28 16:34:43 -04:00
Material Design Team
7a2b5f0cd7 Automated g4 rollback of changelist 209640439
PiperOrigin-RevId: 209705959
2018-08-28 16:34:03 -04:00
cketcham
148ca998fe Modify BottomAppBar to react to the transformations of the FloatingActionButton
PiperOrigin-RevId: 209640439
2018-08-28 16:33:22 -04:00
cketcham
43bdfac37b Expose option to slide the BottomAppBar on and off the screen programmatically
PiperOrigin-RevId: 208866469
2018-08-17 17:14:22 -04:00
cketcham
40696b02b7 Fix jagged edges on cutout for BottomAppBar
PiperOrigin-RevId: 206194466
2018-08-02 17:57:09 -07:00
cketcham
841ba156fc Automated g4 rollback of changelist 199530791
PiperOrigin-RevId: 201188669
2018-06-20 17:29:57 -04:00
afohrman
b087cbad7a Roll back deletion of FAB attachment functionality.
PiperOrigin-RevId: 199530791
2018-06-20 17:24:55 -04:00
cketcham
cdb99838c6 Don't allow the fab to be detached from the BottomAppBar unless the fab isn't visible, or the BottomAppBar is scrolled off the screen
PiperOrigin-RevId: 199511216
2018-06-20 17:24:01 -04:00
dniz
11d5335ea9 Remove 1 pixel hairline from BottomAppBar
PiperOrigin-RevId: 199356320
2018-06-20 17:23:17 -04:00
dniz
76bf445390 Annotate BottomAppBar dimension methods
PiperOrigin-RevId: 198767414
2018-05-31 16:36:00 -04:00
cketcham
a7ad02eb7b Add hideOnScroll attr to the BottomAppBar javadoc
PiperOrigin-RevId: 198596762
2018-05-30 17:44:54 -04:00
cketcham
bc9224e122 Add missing accessor methods for BottomAppBar
PiperOrigin-RevId: 198593477
2018-05-30 17:44:24 -04:00
marianomartin
cfc5fdbb81 Fix bottom app bar cutout not showing when the fab isn't measured.
PiperOrigin-RevId: 194818259
2018-04-30 15:13:06 -04:00
marianomartin
1e4a3d17fb Dynamically getting size of the fab button. Using that plus a margin defined in style to get the proper size for the cutout
PiperOrigin-RevId: 194232804
2018-04-30 12:01:20 -04:00
cketcham
a4815b0b9a Update BottomAppBar and DrawerLayout to use AttachedBehavior
PiperOrigin-RevId: 193524022
2018-04-30 11:34:12 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00