97 Commits

Author SHA1 Message Date
Mygod
aa8042f498 [BottomSheet] Make touch_outside unfocusable
Resolves https://github.com/material-components/material-components-android/pull/974

GIT_ORIGIN_REV_ID=682a8b7ac7eb4bcdc238e04c14349b7beb4a8185
PiperOrigin-RevId: 304632071
2020-04-06 12:31:53 -07:00
melaniegoetz
4e28d9c916 Adjust BottomSheet peek height based on insets
PiperOrigin-RevId: 303819564
2020-04-03 08:44:46 -07:00
hunterstich
dce680b91a Fix BottomSheet java doc lint errors
PiperOrigin-RevId: 300605854
2020-03-13 11:13:06 -04:00
melaniegoetz
2a188e507a Change Theme.MaterialComponents.BottomSheetDialog to use new bottomSheet style
Fixes: https://github.com/material-components/material-components-android/issues/1086
PiperOrigin-RevId: 299402955
2020-03-09 09:25:30 -07:00
melaniegoetz
d0f13768b5 Make @style/Widget.MaterialComponents.BottomSheet public
PiperOrigin-RevId: 299139774
2020-03-05 13:11:40 -08:00
cketcham
2cb8909027 Add attributes from BottomSheetBehavior to public.xml
PiperOrigin-RevId: 293841078
2020-02-10 09:56:42 -05:00
Guillermo Mazzola
7ef37a05dd [BottomSheetBehavior] Resolving behavior_expandedOffset as a dimen
Using an integer will remain allowed, however using a dimen will be preferred.

Resolves https://github.com/material-components/material-components-android/pull/836

GIT_ORIGIN_REV_ID=4a02d95855569a076e5ee7a682ea5e8c9988eab9
PiperOrigin-RevId: 293623878
2020-02-06 17:25:57 -05:00
Material Design Team
dc4efe78d9 Make draggable true by default - so it will be true when using Empty Constructor as well
PiperOrigin-RevId: 290121017
2020-01-17 13:02:36 -05:00
ethanhsuhsu
6c1b620565 [BottomSheetDialog] Removed existing content during each setContentView
Resolves https://github.com/material-components/material-components-android/pull/873
Resolves https://github.com/material-components/material-components-android/issues/869

GIT_ORIGIN_REV_ID=7528e645a033c00dee0eac03237eb6d87aa9d002
PiperOrigin-RevId: 288762766
2020-01-08 14:10:39 -08:00
Material Design Team
5b4ea9c966 [BottomSheetBehavior] Add an ability to prevent dragging to expand/collapse the BottomSheet
PiperOrigin-RevId: 288710272
2020-01-08 12:10:25 -08:00
Material Design Team
67fc0c9ff8 Allow collapsed bottom sheet to settle to half expanded state on dragging up.
PiperOrigin-RevId: 286554369
2019-12-21 08:48:14 -05:00
melaniegoetz
e0578295e1 Update BottomSheet to have a singular SettleRunnable
Resolves https://github.com/material-components/material-components-android/issues/516

PiperOrigin-RevId: 283802793
2019-12-05 14:50:09 -05:00
Material Design Team
c47e6a4e3f Set threshold for hiding the bottom sheet so that dragging it down doesn't accidently dismiss it.
PiperOrigin-RevId: 274646607
2019-10-21 10:22:32 -04:00
ldjesper
60da1489fd Provide users with more control over a11y handling with BottomSheet
Resolves https://github.com/material-components/material-components-android/issues/519

Update the catalog to demonstrate usage

PiperOrigin-RevId: 273757779
2019-10-10 15:51:39 -04:00
ldjesper
8b90f02f2b Remove unreleased deprecated method BottomSheetBehavior.getBottomSheetCallback before release
PiperOrigin-RevId: 272934464
2019-10-04 15:32:08 -04:00
ldjesper
747ad12725 Maintain API backwards compatability for BottomSheetBehavior from 1.0.0 by adding a Deprecated constructor.
PiperOrigin-RevId: 272683597
2019-10-03 15:42:38 -04:00
ldjesper
ee37298482 Update BottomSheetDialog to have consistent create and get signatures
This prevents extensions from causing a ClassCastException on calls to getDialog

Resolve https://github.com/material-components/material-components-android/issues/632

PiperOrigin-RevId: 272594580
2019-10-03 11:44:30 -04:00
Material Design Team
2bbb47d48f Recalculate bottom sheet half expanded offset when setHalfExpandedRatio() is called after
the bottom sheet is laid out.

PiperOrigin-RevId: 271985444
2019-10-01 04:05:57 -04:00
Material Design Team
fd13d16292 Support registering multiple BottomSheetCallbacks
PiperOrigin-RevId: 271650665
2019-10-01 03:59:15 -04:00
Material Design Team
08770723e2 Update BottomSheetBehavior documentation for accessibility.
PiperOrigin-RevId: 271443929
2019-09-27 14:04:58 -04:00
Material Design Team
46366ad435 Automated g4 rollback of changelist 270969395
PiperOrigin-RevId: 271016488
2019-09-26 17:54:00 -04:00
Material Design Team
81c967c6a1 Fix broken scrolling when content in the bottom sheet uses nestedScrollingEnabled="false"
PiperOrigin-RevId: 270969395
2019-09-26 17:53:08 -04:00
melaniegoetz
17e3e18edb Automated g4 rollback of changelist 270730347
PiperOrigin-RevId: 270959699
2019-09-26 17:52:44 -04:00
melaniegoetz
fd56af53c7 Adjust BottomSheet peek height based on insets
PiperOrigin-RevId: 270730347
2019-09-24 12:22:28 -04:00
cketcham
cbfc677db4 Add nullability annotation to BottomSheetDialogFragment
This matches the method from AppCompatDialogFragment

PiperOrigin-RevId: 270345625
2019-09-24 12:22:10 -04:00
cketcham
b3aec13c32 Fix nullable annotation for BottomSheetDialogFragment#getDialog()
PiperOrigin-RevId: 270061278
2019-09-20 10:59:01 -04:00
marianomartin
215a839598 Internal cleanup
PiperOrigin-RevId: 267504117
2019-09-12 13:48:16 -04:00
Material Design Team
a41d340b0d Add more a11y support to BottomSheetBehavior.
PiperOrigin-RevId: 266403799
2019-09-04 17:56:27 -04:00
cketcham
7bb525ff59 Update usages of ShapeAppearanceModel to use Builder pattern
PiperOrigin-RevId: 266144471
2019-08-29 15:39:51 -04:00
marianomartin
0d4515cb46 Internal cleanup
PiperOrigin-RevId: 265971745
2019-08-29 14:59:20 -04:00
marianomartin
c99f9522c7 Update peekHeight's getter and setter to be not final.
PiperOrigin-RevId: 265891346
2019-08-29 14:51:33 -04:00
marianomartin
71f65908fa Remove final from BottomSheetBehavior (set/get)State
PiperOrigin-RevId: 265685873
2019-08-29 12:09:31 -04:00
cketcham
2e0fd6d8af Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 264850918
2019-08-26 11:38:56 -04:00
Material Design Team
ac9ca51be2 Fix inconsistent material shape animations in bottom sheet
PiperOrigin-RevId: 264410715
2019-08-26 10:44:33 -04:00
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