cketcham
edbc7a58d2
Fix nullability of getBehavior() method
...
The behavior isn't available until the view has been inflated. This inflates the view if the behavior is requested before that happens.
PiperOrigin-RevId: 262551174
2019-08-16 15:38:40 -04:00
cketcham
14b7ba53c2
Fix potential IllegalStateException for BottomSheetDialogFragment#dismiss()
...
PiperOrigin-RevId: 262549163
2019-08-16 15:37:38 -04:00
Felipe Roriz
37bb299f6e
Automated g4 rollback of changelist 261796473
...
PiperOrigin-RevId: 261908197
2019-08-06 15:28:37 -04:00
Felipe Roriz
2c46004075
Automated g4 rollback of changelist 261764987
...
PiperOrigin-RevId: 261796473
2019-08-06 15:20:14 -04:00
Felipe Roriz
bede31c6b5
[BottomSheet] Updated BottomSheetDialog and Fragment dismiss animation
...
Resolves https://github.com/material-components/material-components-android/pull/415
GIT_ORIGIN_REV_ID=7aa46483d15c00c102b9b5c4463bf3bd331e4d15
PiperOrigin-RevId: 261764987
2019-08-06 15:18:43 -04:00
isabellekim
cb2ba9789f
Adding annotations to BottomSheetBehavior
...
PiperOrigin-RevId: 260217762
2019-07-29 16:41:42 -04:00
Material Design Team
ab8906e1b6
Automated g4 rollback of changelist 260061540
...
PiperOrigin-RevId: 260066674
2019-07-29 16:37:50 -04:00
isabellekim
b2e9ce4fc4
Adding annotations to BottomSheetBehavior
...
PiperOrigin-RevId: 260061540
2019-07-29 16:36:59 -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
cketcham
bff75f2d3e
Update to lamdas
...
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -04:00
Jan Skrasek
084177e1ba
Remove rounded bottom corners of bottomsheets
...
Resolves https://github.com/material-components/material-components-android/pull/348
GIT_ORIGIN_REV_ID=3af172c871c111e109cc2c7413bec04d28f385c5
PiperOrigin-RevId: 249482184
2019-05-24 14:20:39 -04:00
Material Design Team
3c5f9f6cb0
Migrate CoordinatorLayout android support libraries to androidx
...
PiperOrigin-RevId: 248819271
2019-05-21 12:03:28 -04:00
melaniegoetz
7c76b7db93
Add javadoc for disableShapeAnimations() BottomSheetBehavior method
...
PiperOrigin-RevId: 248571879
2019-05-16 17:30:34 -04:00
melaniegoetz
3560a3afb3
Allow Bottomsheet to settle to Half-expanded state on drag
...
PiperOrigin-RevId: 247061538
2019-05-07 17:28:56 -04:00
Material Design Team
e1222dd07f
Notch support for bottom sheet behavior
...
PiperOrigin-RevId: 246952688
2019-05-07 17:26:40 -04:00
Material Design Team
ab7779d771
Make disableShapeAnimations() public.
...
This is necessary to make the tweak accessible from external tests.
PiperOrigin-RevId: 245195115
2019-04-29 15:38:29 -07:00
melaniegoetz
e53eff870f
Api to allow for corner transition animations in BottomSheet to be disabled for testing
...
PiperOrigin-RevId: 244924319
2019-04-29 15:29:15 -07:00
dniz
3ffa3d2ccd
Update BottomSheetBehavior to check API level before reading elevation attribute
...
PiperOrigin-RevId: 244660854
2019-04-29 15:13:13 -07:00
marianomartin
e525d5226e
BEGIN_PUBLIC
...
Remove bottomsheet behavior from widget package
END_PUBLIC
PiperOrigin-RevId: 244226096
2019-04-19 21:53:07 -04:00
melaniegoetz
dbb96b109e
Add DayNight Themes for BottomSheetDialog
...
PiperOrigin-RevId: 244102278
2019-04-19 21:48:31 -04:00
melaniegoetz
3db852c67a
Update BottomSheetBehavior elevation
...
PiperOrigin-RevId: 244101048
2019-04-19 21:41:24 -04:00
Material Design Team
18b8ddaf23
Automated g4 rollback of changelist 243269991
...
PiperOrigin-RevId: 243279282
2019-04-19 15:57:35 -04:00
marianomartin
100d66cc25
Exclude BottomSheetBehavior from widget package
...
PiperOrigin-RevId: 243269991
2019-04-19 15:55:49 -04:00
ricknout
8d639eed39
Fix BottomSheetBehavior halfExpandedOffset calculation
...
GIT_ORIGIN_REV_ID=2dcee04951fe4cd12241d62b819f91cac9da1301
PiperOrigin-RevId: 242699135
2019-04-19 13:22:39 -04:00
afohrman
2fda77a6ab
Remove unnecessary shapeAppearanceOverlay from BottomSheet style.
...
The shapeAppearanceOverlay attribute was not necessary to achieve the rounded 0 shape appearance for the BottomSheet styles. This commit removes the shapeAppearanceOverlay.
PiperOrigin-RevId: 241006967
2019-04-05 15:18:52 -04:00
melaniegoetz
5aebe1a111
API to set height of a half expanded sheet, in proportion to parent height
...
PiperOrigin-RevId: 239689682
2019-03-22 17:04:58 -04:00
melaniegoetz
a192f47036
Add dark-theme/elevation overlay support for BottomSheet
...
PiperOrigin-RevId: 239016572
2019-03-22 16:24:17 -04:00
melaniegoetz
d6f7b7c997
Update BottomSheetBehavior to use Nested Scrolling 3
...
PiperOrigin-RevId: 238730843
2019-03-22 16:18:24 -04:00
marianomartin
87a9e5aba9
Shape sizes
...
Allow the ThemeSwitcher to change shape sizes also change it to a BottomSheetdialogFragment to see the content more clearly.
PiperOrigin-RevId: 233839250
2019-02-24 14:10:20 -05:00
Material Design Team
3fe5a397ac
Force recalculation of collapsed offset when setting peek height
...
PiperOrigin-RevId: 232388784
2019-02-11 11:14:07 -08:00
melaniegoetz
901ba79163
Add BottomSheetBehavior SavedState API
...
PiperOrigin-RevId: 232328750
2019-02-11 11:13:21 -08:00
Material Design Team
ba2006d6f1
Automated g4 rollback of changelist 232038402
...
PiperOrigin-RevId: 232057512
2019-02-11 11:10:33 -08:00
Material Design Team
f11bafd91d
Force recalculation of collapsed offset when setting peek height
...
PiperOrigin-RevId: 232038402
2019-02-11 11:09:50 -08:00
Material Design Team
267bca1fd2
setHideable(false) on hidden bottom sheet animates to collapsed state
...
PiperOrigin-RevId: 231655251
2019-02-11 11:01:36 -08:00
melaniegoetz
eefb5d4d77
Create ThemeOverlay's for BottomSheets, changes bottomSheetDialogTheme to use Overlay instead of full theme reference
...
PiperOrigin-RevId: 230944305
2019-01-25 15:23:16 -05:00
melaniegoetz
c94b5209b9
Fix non-scrollable bottomsheet corners when set directly to STATE_EXPANDED
...
PiperOrigin-RevId: 230933282
2019-01-25 15:21:29 -05:00
melaniegoetz
0f9b84e51f
Allow public access of Behavior
...
PiperOrigin-RevId: 229651276
2019-01-18 14:23:51 -05:00
dniz
11df79f95c
Clean up Gradle build shorthands for appcompat/androidx libraries
...
PiperOrigin-RevId: 229369959
2019-01-18 14:13:26 -05:00
melaniegoetz
41daf802f1
Fix NPE in BottomSheetBehavior onViewReleased
...
PiperOrigin-RevId: 229215869
2019-01-18 14:11:13 -05:00
denis-kim
e49cd32a43
Fix wrong position and state when touches settling view
...
1) When touches normal child view in settling bottom sheet,
the state goes to STATE_EXPANDED or STATE_COLLAPSED by SettleRunnable.
It should be STATE_DRAGGING.
SettleRunnable’s targetState should be ignored when settling is aborted.
2) When touches nested scroll child view in settling bottom sheet,
the settling animation is not stopped.
In settling state, the child view should be captured, not the nested scroll child.
Fixes: https://issuetracker.google.com/issues/119289861
Test: Touch or drag the settling bottom sheet
GIT_ORIGIN_REV_ID=514e20ad10aafcc6e95015d95e1efc888d93bed7
PiperOrigin-RevId: 228944484
2019-01-18 14:02:59 -05:00
melaniegoetz
685f244e2e
Animate Bottomsheet shape corner transitions
...
PiperOrigin-RevId: 228756397
2019-01-10 17:20:37 -05:00
cketcham
dc72aaeed4
Migrate Gradle build and sources to androidx
...
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
melaniegoetz
4cf6ece413
Automated g4 rollback of changelist 225064028
...
PiperOrigin-RevId: 225088658
2018-12-12 16:24:24 -05:00
melaniegoetz
220456295b
Fix expanded state appearance to match spec and ShapeAppearanceModel reference in BottomSheetBehavior
...
PiperOrigin-RevId: 225064028
2018-12-12 16:24:02 -05:00
melaniegoetz
403973284e
Automated g4 rollback of changelist 224522042
...
PiperOrigin-RevId: 225060461
2018-12-12 16:23:30 -05:00
melaniegoetz
73f7681101
Automated g4 rollback of changelist 224370498
...
PiperOrigin-RevId: 224522042
2018-12-10 14:15:46 -05:00
melaniegoetz
16822d6344
Shape Theming for BottomSheet
...
PiperOrigin-RevId: 224370498
2018-12-10 14:14:05 -05:00
cketcham
7a69df4abf
Add transition feedback for accessibility when the BottomDrawer opens or closes
...
PiperOrigin-RevId: 223977494
2018-12-06 12:02:12 -05:00
Material Design Team
de43cd1ecc
Fix NPE in SetStateInternal.
...
PiperOrigin-RevId: 215732122
2018-10-11 18:04:19 -04:00