77 Commits

Author SHA1 Message Date
melaniegoetz
6178e71463 Update BottomSheet to have a singular SettleRunnable
Resolves https://github.com/material-components/material-components-android/issues/516

PiperOrigin-RevId: 283802793
(cherry picked from commit e0578295e153d3ddfdc5b11db362e9bc4314697b)
2019-12-18 15:44:06 -05:00
ldjesper
f9e5bfde65 Remove unreleased deprecated method BottomSheetBehavior.getBottomSheetCallback before release
PiperOrigin-RevId: 272934464
(cherry picked from commit 8b90f02f2b49206194087ea50e3403dfccf58979)
2019-10-04 15:38:28 -04:00
ldjesper
60216b04d3 Maintain API backwards compatability for BottomSheetBehavior from 1.0.0 by adding a Deprecated constructor.
PiperOrigin-RevId: 272683597
(cherry picked from commit 747ad12725046c71defe66085a3e1b74e1455440)
2019-10-04 11:43:32 -04:00
ldjesper
2f296f31e4 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 15:50:23 -04:00
Material Design Team
00ea72f344 Support registering multiple BottomSheetCallbacks
PiperOrigin-RevId: 271650665
2019-10-03 15:50:23 -04:00
Material Design Team
f76f4626c5 Update BottomSheetBehavior documentation for accessibility.
PiperOrigin-RevId: 271443929
2019-10-03 15:50:23 -04:00
cketcham
e1e020ce88 Fix nullable annotation for BottomSheetDialogFragment#getDialog()
PiperOrigin-RevId: 270061278
2019-10-03 15:50:23 -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
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