15 Commits

Author SHA1 Message Date
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
dniz
a185866318 Add support for materialThemeOverlay to Snackbar styles
PiperOrigin-RevId: 222090189
2018-12-06 11:12:31 -05:00
dniz
4dc914d737 Add Snackbar backgroundColorOverlayAlpha attribute
PiperOrigin-RevId: 222075167
2018-11-26 07:56:47 -05:00
dniz
d03f490740 Snackbar update label text color to new color system
PiperOrigin-RevId: 218861625
2018-10-28 21:42:33 -04:00
dniz
868e80ed6f Add support for anchoring Snackbars to Views so they can be placed above
navigational elements and FABs

This commit also disables the pushing up of FABs when an anchor view is set

PiperOrigin-RevId: 214287486
2018-09-28 16:24:01 -04:00
dniz
8064a7672f New enter and exit animations for Snackbars
- Original slide animation will be used for Widget.Design and unstyled Snackbars
- New fade + scale animation will be used for Widget.MaterialComponents Snackbars

PiperOrigin-RevId: 213669605
2018-09-28 16:10:27 -04:00
dniz
3dc5733f36 Update Snackbar to use new color system
PiperOrigin-RevId: 212275277
2018-09-14 10:52:33 -04:00
dniz
919f2183f2 Change Snackbar to use margin instead of padding for window inset positioning
PiperOrigin-RevId: 210554683
2018-08-28 16:43:13 -04:00
dniz
979e577681 Consume all Snackbar touches with OnTouchListener
PiperOrigin-RevId: 206316703
2018-08-02 18:01:36 -07:00
dniz
fa9d470741 Fix Snackbar issue where touches are not consumed for non-a11y users and add dismiss action for a11y users
PiperOrigin-RevId: 205450300
2018-07-20 18:27:32 -04:00
marianomartin
f777c67633 Override snackbar duration for touch exploration
Show the Snackbar for indefinite time if touch exploration is enabled and it has an action.
Also make focusable instead of clickable so it doesn't read double tap to interact

PiperOrigin-RevId: 204821491
2018-07-17 18:10:38 -04:00
cketcham
2cb77c9331 Update Snackbar documentation to include LENGTH_INDEFINITE
PiperOrigin-RevId: 203952007
2018-07-11 15:17:32 -04:00
dniz
b1a784ce75 Implement new Material Snackbar according to spec
This commit updates MaterialComponents Snackbars to have margins and rounded corners, as well as makes Snackbars styleable at the app theme level via a snackbarStyle attribute.

PiperOrigin-RevId: 202141103
2018-07-02 09:41:41 -04:00
marianomartin
7aff9d2e8b Snackbar, not animating only when talkback is turned on
PiperOrigin-RevId: 196714687
2018-05-16 11:45:09 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00