hunterstich
71f014fa41
[Snackbar] Added optional close icon
...
PiperOrigin-RevId: 845256053
2025-12-17 14:23:55 +00:00
Material Design Team
54be28bd3d
Automated g4 rollback of changelist 817143878
...
PiperOrigin-RevId: 817183622
2025-10-10 19:09:47 +00:00
Gaëtan Muller
41311caffc
[Snackbar] Remove TODOs about Robolectric shadows
...
Resolves https://github.com/material-components/material-components-android/pull/4735
- 0f6faacc5cae8272a5b4c72f8c7ff243db1642d9 by Gaëtan Muller <m.gaetan89@gmail.com>
PiperOrigin-RevId: 817143878
2025-10-10 18:11:08 +00:00
pekingme
0a2735b2f8
Automated g4 rollback of changelist 724420450
...
PiperOrigin-RevId: 731911056
2025-03-03 19:52:09 +00:00
hunterstich
580e8d56d6
[Build] Updated build to use Dackka for documentation generation
...
PiperOrigin-RevId: 730522331
2025-02-25 19:33:33 +00:00
pekingme
755981ad91
[Snackbar] Added an opt-out for the coming new dismissal behavior for Snackbar with action.
...
PiperOrigin-RevId: 724420450
2025-02-10 13:19:39 -08:00
pekingme
eae3edb4a8
Automated g4 rollback of changelist 686357273
...
PiperOrigin-RevId: 686960117
2024-10-18 16:58:52 +00:00
pekingme
5441957964
[Snackbar] Updated the snackbar with action not auto-dismiss when a11y is enabled (talkback, switch access, voice access).
...
PiperOrigin-RevId: 686357273
2024-10-16 20:40:43 +00:00
rightnao
e3b255b3a0
[Docs] Crosslink github docs in javadocs
...
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
Material Design Team
44cc9b745c
Add @CanIgnoreReturnValue to some APIs that return this.
...
PiperOrigin-RevId: 468721442
2022-08-22 15:22:27 -04:00
leticiars
581f7343c6
[Snackbar] Made snackbar javadoc more clear of how its dismissing works.
...
PiperOrigin-RevId: 468494275
2022-08-19 10:56:35 -04:00
dsn5ft
b62b9a50b0
[Gradle] Update library source and target compatibility to Java 8 and add lambda + method reference usage
...
PiperOrigin-RevId: 443370295
2022-04-21 16:29:39 -04:00
conradchen
4c7be52775
[Snackbar] Support setting max lines programmatically
...
Resolves https://github.com/material-components/material-components-android/issues/2018
PiperOrigin-RevId: 427305265
2022-02-09 15:59:34 +00:00
Material Design Team
9659a536b9
[Snackbar] Add support for passing a Context to Snackbar.make()
...
Currently Snackbar.make() will use the context of the parent view (typically CoordinatorLayout or decor content view) to inflate the Snackbar view. This is not desirable for cases where there may be a ContextThemeWrapper below that parent view, e.g. for a Fragment that uses material theme.
The behavior of existing methods without Context argument remain unchanged.
PiperOrigin-RevId: 340286851
2020-11-03 11:12:55 -05:00
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