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
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
c6a08a4b68
Allow for centering on EdgeTreatments
...
PiperOrigin-RevId: 214613004
2018-09-28 16:28:45 -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
f2aba00d8a
Set maxButtonHeight for BottomAppBar to avoid alignment issues
...
PiperOrigin-RevId: 210763592
2018-08-31 11:11:26 -04:00
cketcham
abee218646
Fix height of BottomAppBar in landscape
...
BottomAppBar was incorrectly using the Toolbar min height which is less tall in landscape. It should always be 56dp.
PiperOrigin-RevId: 210362480
2018-08-28 16:41:25 -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
cketcham
8e3cbc3463
Fix BottomAppBar background when no Fab is anchored
...
PiperOrigin-RevId: 199656555
2018-06-20 17:25:55 -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
afohrman
0518a3d651
Add missing public attributes.
...
Looks like some styles and component style attributes slipped by.
PiperOrigin-RevId: 198762794
2018-05-31 16:35:29 -04:00
cketcham
a7ad02eb7b
Add hideOnScroll attr to the BottomAppBar javadoc
...
PiperOrigin-RevId: 198596762
2018-05-30 17:44:54 -04:00