dsn5ft
7bd56f559f
[Internal] Add missing @Retention(RetentionPolicy.SOURCE) to a few enum interfaces
...
PiperOrigin-RevId: 759661555
2025-05-19 14:32:20 +00:00
dsn5ft
08de7b042d
[HideViewOnScrollBehavior] Fix bugs where setViewEdge() can't be used because EDGE_ constants are package private, and also client's setViewEdge() was being overridden by the internal setViewEdge() behavior in onLayout()
...
Resolves https://github.com/material-components/material-components-android/issues/4770
PiperOrigin-RevId: 759637107
2025-05-16 17:05:32 +00:00
pubiqq
8d044c4ae8
[HideViewOnScrollBehavior] Add a method to get the HideViewOnScrollBehavior associated with the view
...
Resolves https://github.com/material-components/material-components-android/pull/4768
GIT_ORIGIN_REV_ID=9471abba29b6c63aaeadf6cb4708480e8e8cc0b8
PiperOrigin-RevId: 757874866
2025-05-13 16:42:33 +00:00
pubiqq
def80c54ab
[HideViewOnScrollBehavior] Fix the target position of the view when sliding it off the screen without animation
...
Resolves https://github.com/material-components/material-components-android/pull/4767
GIT_ORIGIN_REV_ID=2e119cfc7fac044568f4116366a0fc20d2ef9480
PiperOrigin-RevId: 756858576
2025-05-12 18:29:07 +00:00
rightnao
9c33476db6
[A11y] Move responsibility of disabling hide on scroll to HideViewOnScrollBehavior and BottomAppBar
...
PiperOrigin-RevId: 738068009
2025-03-19 18:25:25 +00:00
rightnao
d560705861
[A11y] Prevent hide on scroll when Talkback is on
...
PiperOrigin-RevId: 728848785
2025-02-20 15:47:18 +00:00
afohrman
c0231d7d60
[FloatingToolbar] Add motion for horizontal and vertical configurations of the floating toolbar.
...
PiperOrigin-RevId: 695232457
2024-11-11 13:28:44 -08:00
pubiqq
510881a469
[Internal] Stop using deprecated androidx.core.view.* methods
...
Resolves https://github.com/material-components/material-components-android/pull/4117
GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
kingwang666
624543f9bf
[SwipeDismissBehavior] Fixed SwipeDissmissBehavior not work when down touch event consumed.
...
Resolves https://github.com/material-components/material-components-android/pull/2888
Resolves https://github.com/material-components/material-components-android/issues/1333
GIT_ORIGIN_REV_ID=12fbcbc29d61dd97abef6354b3e5cd5dede94f76
PiperOrigin-RevId: 478885591
2022-10-04 21:36:28 +00:00
rightnao
21b74f90b2
[BottomAppBar][BottomNavigationView] Update motion specs for show/hide bar
...
PiperOrigin-RevId: 470801900
2022-08-30 11:27:36 -04:00
rightnao
c5fadac827
Automated g4 rollback of changelist 469291824
...
PiperOrigin-RevId: 469334903
2022-08-24 14:40:40 -07:00
rightnao
fdd8dae982
[BottomAppBar][BottomNavigationView] Update motion specs for show/hide bar
...
PiperOrigin-RevId: 469291824
2022-08-24 14:38:54 -07:00
kingwang666
39b4c76c72
[SwipeDismissBehavior] Fixed drag view alpha not changing when swipeDirection is END_TO_START
...
Resolves https://github.com/material-components/material-components-android/pull/2890
GIT_ORIGIN_REV_ID=de72c31a6520ae1f9fa4e781a6fbe9609dc148b9
PiperOrigin-RevId: 469186475
2022-08-22 15:24:45 -04:00
rightnao
21f9b0ff25
[BottomAppBar] Add a callback for whenever bottom view hides/unhides through scrolling
...
PiperOrigin-RevId: 450449206
2022-05-24 13:13:10 -04:00
pubiqq
3ca41be8f0
[General] Fix typos
...
Resolves https://github.com/material-components/material-components-android/pull/2654
GIT_ORIGIN_REV_ID=b8f6728979875629f2c813ef90d2f671cf56b4eb
PiperOrigin-RevId: 442852630
2022-04-19 14:48:55 -04:00
conradchen
5b9f27aad0
[SnackBar] Make dismiss direction the same as swipe direction
...
In SwipeDismissBehavior, when dismissing views according to the horizontal velocity instead of position delta, we would still using position delta to decide the dismissing direction, which, unfortunately, makes the view always be dismissed from left to right because of the "less than" logic we are using doesn't really take the equaling case into account. Fixes this by using the velocity direction to dismiss the view instead.
Resolves https://github.com/material-components/material-components-android/issues/1868
PiperOrigin-RevId: 442553318
2022-04-18 13:12:46 -04:00
Material Design Team
a487c89185
Internal change
...
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
conradchen
34740b6fdf
[BottomAppBar] Support showing/hiding immediately
...
Adds APIs to show/hide bottom app bar immediately.
Resolves https://github.com/material-components/material-components-android/issues/2230
PiperOrigin-RevId: 394267535
2021-09-01 17:09:18 -04:00
Maxwell
3bb0911d1b
[BottomAppBar] Add functions for checking (STATE_SCROLLED_UP | STATE_SCROLLED_DOWN)
...
Resolves https://github.com/material-components/material-components-android/pull/2279
GIT_ORIGIN_REV_ID=93704406cbf827eddf9273b5f4b2e8a3cb467c03
PiperOrigin-RevId: 384775019
2021-07-15 12:34:59 -04:00
marianomartin
049ad022a6
Delete components build.gradle files
...
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
Material Design Team
76ffe35fef
Cleanup
...
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
marianomartin
1cc1dd5778
Automated g4 rollback of changelist 278624814
...
PiperOrigin-RevId: 280494190
2019-11-15 15:11:32 -05:00
marianomartin
5c922b4140
Add getter for listener to SwipeDismissBehavior
...
PiperOrigin-RevId: 278862529
2019-11-07 16:07:07 -05:00
marianomartin
95c110bea2
Fix swipe dismiss behavior
...
PiperOrigin-RevId: 278624814
2019-11-06 10:15:20 -05:00
Material Design Team
6367566c46
Update HideBottomViewOnScrollBehavior to use non-deprecated versions of Behavior’s onStartNestedScroll and onNestedScroll.
...
PiperOrigin-RevId: 269610701
2019-09-18 14:20:03 -04:00
Material Design Team
7ff6f6e1e2
Add a11y support to SwipeDismissBehavior
...
PiperOrigin-RevId: 268976540
2019-09-18 14:13:33 -04:00
cketcham
12d213270f
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264825271
2019-08-26 11:32:53 -04:00
cketcham
310fc88fc6
Update javadoc for HideBottomViewOnScrollBehavior#setAdditionalHiddenOffsetY()
...
PiperOrigin-RevId: 259772561
2019-07-24 15:10:52 -04:00
marianomartin
b4c21e7826
[SwipeDismissBehavior] doesn't work as expected
...
PiperOrigin-RevId: 259587056
2019-07-23 15:32:37 -04:00
dniz
0512f776c5
Remove sub-package AndroidManifest.xml files from lib directory
...
PiperOrigin-RevId: 258390736
2019-07-16 13:18:32 -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
367b295624
Internal cleanup
...
PiperOrigin-RevId: 254414602
2019-06-24 17:12:42 -04:00
cketcham
cb71e2d582
Update BottomAppBar hideOnScroll offset to account for the shadow drawn at the top of the view.
...
PiperOrigin-RevId: 250562675
2019-05-30 13:59:24 -07:00
Material Design Team
3c5f9f6cb0
Migrate CoordinatorLayout android support libraries to androidx
...
PiperOrigin-RevId: 248819271
2019-05-21 12:03:28 -04:00
食梦兽
7caa7139c1
Height increase the bottomMargin of the view
...
Because the Behavior is to slide down to disappear, the more reasonable sliding distance should be the height of the view plus the bottomMargin of the view.
Resolves https://github.com/material-components/material-components-android/pull/253
GIT_ORIGIN_REV_ID=77073b466107d2741c5688e06d7591a28913dcba
PiperOrigin-RevId: 229931959
2019-01-18 14:28:52 -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
marianomartin
585e2fede0
Remove constructor comments
...
PiperOrigin-RevId: 209762154
2018-08-28 16:34:43 -04:00
cketcham
43bdfac37b
Expose option to slide the BottomAppBar on and off the screen programmatically
...
PiperOrigin-RevId: 208866469
2018-08-17 17:14:22 -04:00
dniz
9ca33544ac
Update package name to com.google.android.material
...
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00