43 Commits

Author SHA1 Message Date
dniz
bfcaf43715 Hide BaseTransientBottomBar IntDef annotations
PiperOrigin-RevId: 260144023
2019-07-29 16:38:30 -04:00
dniz
949e64475e Update Snackbar#setAnchorView(int) javadoc to explain how anchor view is found
PiperOrigin-RevId: 259991025
2019-07-29 16:31:45 -04:00
dniz
52ebd29fa6 Add setBackgroundTintList to Snackbar
PiperOrigin-RevId: 259812607
2019-07-25 13:11:25 -04:00
dniz
cc73c2a630 Update TODOs
PiperOrigin-RevId: 259535844
2019-07-23 11:21:39 -04:00
marianomartin
11e6dd134e Cleanup BaseTransientBottomBar and write test making sure touch events are handled properly
PiperOrigin-RevId: 259260862
2019-07-22 12:22:46 -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
marianomartin
b5ec7135c5 Rollback accidental changes to snackbar
PiperOrigin-RevId: 257821452
2019-07-15 19:13:06 -04:00
marianomartin
0a5d66ffc0 Internal cleanup
PiperOrigin-RevId: 257802841
2019-07-15 19:07:26 -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
marianomartin
152f05adbc Internal cleanup
PiperOrigin-RevId: 256180803
2019-07-03 14:09:17 -04:00
marianomartin
c695592f90 Remove redeclaration of @Duration annotation from Snackbar in favor
of inheriting it and the constant values from BaseTransientBottomBar.

PiperOrigin-RevId: 255629856
2019-07-03 14:04:20 -04:00
marianomartin
164bf0fabd Internal cleanup
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
marianomartin
469c12636d Change snackbar duration timeout for a11y
PiperOrigin-RevId: 255456517
2019-07-03 14:00:16 -04:00
marianomartin
367b295624 Internal cleanup
PiperOrigin-RevId: 254414602
2019-06-24 17:12:42 -04:00
cketcham
bff75f2d3e Update to lamdas
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -04:00
marianomartin
90837ec485 Internal cleanup
PiperOrigin-RevId: 249243403
2019-05-21 12:15:07 -04:00
Material Design Team
3c5f9f6cb0 Migrate CoordinatorLayout android support libraries to androidx
PiperOrigin-RevId: 248819271
2019-05-21 12:03:28 -04:00
Nick Rout
d7e994afbf [Snackbar] Add support for changing text & background tint color at runtime
Resolves https://github.com/material-components/material-components-android/pull/360

GIT_ORIGIN_REV_ID=ced4885fd03d6117d5ee460253184d1605895e55
PiperOrigin-RevId: 248537604
2019-05-16 17:29:41 -04:00
marianomartin
e275160a1a Internal change.
PiperOrigin-RevId: 241656157
2019-04-05 15:43:05 -04:00
dniz
d1cd5d451f Only use window insets for Snackbar (BaseTransientBottomBar) bottom margin if
anchor view is not provided

PiperOrigin-RevId: 230532747
2019-01-25 13:54:48 -05:00
dniz
11df79f95c Clean up Gradle build shorthands for appcompat/androidx libraries
PiperOrigin-RevId: 229369959
2019-01-18 14:13:26 -05:00
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
e48d3d73a6 Add Snackbar animationMode attr to public values
PiperOrigin-RevId: 214048648
2018-09-28 16:18:58 -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
gauthams
2cf1040ca8 Add bridge themes for Material Components
PiperOrigin-RevId: 204852599
2018-07-17 18:11:24 -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
21dff0f641 Update MaterialComponents Snackbar to use themed text appearance
PiperOrigin-RevId: 202532773
2018-07-02 09:47:41 -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
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
marianomartin
663fd7abff add res-public files
PiperOrigin-RevId: 198567215
2018-05-30 17:42:48 -04:00
marianomartin
7aff9d2e8b Snackbar, not animating only when talkback is turned on
PiperOrigin-RevId: 196714687
2018-05-16 11:45:09 -04:00
Material Design Team
e37dc2a82e Create @SnackbarDuration for Snackbar class.
Snackbar had methods with params annotated with @BaseTransientBottomBar.Duration which uses BaseTransientBottomBar.LENGTH_SHORT, ... constants, which means Android lint will complain if you try to call Snackbar#make with Snackbar.LENGTH_SHORT and tell you to instead use BaseTransientBottomBar.LENGTH_SHORT which is silly. This works around this issue.

PiperOrigin-RevId: 195269921
2018-05-03 14:36:31 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00