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
connieshi
bd7de3d412
Add null check in #animateViewIn to guard against the post runnable executing after the view has been destroyed.
...
Resolves https://github.com/material-components/material-components-android/issues/917
PiperOrigin-RevId: 290300667
2020-01-17 13:57:49 -05:00
dniz
86b2ec3243
Update Snackbar gesture inset calculation to factor in translationY
...
Fixes issue of compounding margins for legacy Snackbar which uses a slide animation that affects it's position on the screen
Resolves https://github.com/material-components/material-components-android/issues/741
PiperOrigin-RevId: 285246645
2019-12-12 16:10:26 -05:00
dniz
1882fa96b5
Remove ThemeOverlay.AppCompat.Dark from Snackbar mtrl layouts
...
The theme overlay should no longer be needed now that we explicitly set colors on the Snackbar's message text and action button
Resolves https://github.com/material-components/material-components-android/issues/706
PiperOrigin-RevId: 281067788
2019-11-19 10:21:00 -08:00
marianomartin
115313c0c0
Expose a class for themeoverlay in style
...
This moves functionality from ThemeEnforcement into a stand alone class.
Resolves https://github.com/material-components/material-components-android/issues/665
PiperOrigin-RevId: 275481343
2019-10-21 10:24:19 -04:00
dniz
0c8c6f6249
Update Snackbar to respect left/right system window insets
...
PiperOrigin-RevId: 272667571
2019-10-03 11:45:22 -04:00
dniz
4974f31a8b
Update Snackbar#setGestureInsetBottomIgnored to return Snackbar
...
PiperOrigin-RevId: 272522128
2019-10-03 11:43:28 -04: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
2f740c73e3
Update Snackbar's application of backgroundTint so that it applies a tint on a colored background to keep the shadow.
...
PiperOrigin-RevId: 270970055
2019-09-26 17:53:38 -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
dniz
03b5cffbb7
Update naming of Snackbar gesture inset ignore flag
...
PiperOrigin-RevId: 268914646
2019-09-18 14:06:07 -04:00
dniz
72cfef981b
Rename prefix mtrl_ to material_ in public resources
...
PiperOrigin-RevId: 265729121
2019-08-29 12:16:13 -04:00
cketcham
4211a8a794
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 265057036
2019-08-29 10:25:19 -04:00
dniz
c1098453fc
Update Snackbars to respect bottom system gesture inset on Android Q
...
Ensures that the Snackbar swipe to dismiss gesture doesn't conflict with the Quick Switch gesture
PiperOrigin-RevId: 264836552
2019-08-26 11:34:02 -04:00
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