84 Commits

Author SHA1 Message Date
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
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