22 Commits

Author SHA1 Message Date
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
isabellekim
c30abe9d7a Update javadocs for Snackbar.
PiperOrigin-RevId: 300406441
2020-03-13 10:46:58 -04:00
marianomartin
934c407d7d Add a setter for maxInlineActionWidth
PiperOrigin-RevId: 295033109
2020-02-14 11:30:12 -05:00
dniz
b99709200e Add support for Snackbar message text styling via snackbarTextViewStyle attr
PiperOrigin-RevId: 272198481
2019-10-01 12:35:27 -04:00
isabellekim
95af724ca4 Updates snackbar to support app:backgroundTint and app:backgroundTintMode.
Also adds ability to setBackgroundTintMode programmatically.

PiperOrigin-RevId: 270337384
2019-09-24 12:20:17 -04:00
cketcham
4211a8a794 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265057036
2019-08-29 10:25:19 -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
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
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
469c12636d Change snackbar duration timeout for a11y
PiperOrigin-RevId: 255456517
2019-07-03 14:00:16 -04:00
cketcham
bff75f2d3e Update to lamdas
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -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
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05: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
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