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
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
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
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
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
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
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
marianomartin
152f05adbc
Internal cleanup
...
PiperOrigin-RevId: 256180803
2019-07-03 14:09:17 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -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
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
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