36 Commits

Author SHA1 Message Date
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
Material Design Team
aec9964104 Add extra flag to setPeekHeight that controls whether the sheet animates between the original peek height and the new peek height.
PiperOrigin-RevId: 215428993
2018-10-02 14:58:12 -04:00
melaniegoetz
24c40ffa2a Fix NPE in BottomSheetBehaviour
PiperOrigin-RevId: 214297001
2018-09-28 16:27:08 -04:00
cketcham
7b564d1d52 Update default animation spec for BottomSheetDialogs
PiperOrigin-RevId: 209996117
2018-08-28 16:38:35 -04:00
marianomartin
585e2fede0 Remove constructor comments
PiperOrigin-RevId: 209762154
2018-08-28 16:34:43 -04:00
Material Design Team
79d3c53632 Automated g4 rollback of changelist 199854529
PiperOrigin-RevId: 200785748
2018-06-20 17:27:56 -04:00
Material Design Team
63f5c53c7e Repair bottomsheetbehavior on swipe
PiperOrigin-RevId: 199854529
2018-06-20 17:27:00 -04:00
cketcham
cf65d74636 Fix BottomSheetBehavior bug for horizontal swipes.
This fixes a jumpy behavior caused by swiping quickly horizontally on a bottom sheet.

PiperOrigin-RevId: 198868074
2018-06-04 10:48:01 -04:00
marianomartin
663fd7abff add res-public files
PiperOrigin-RevId: 198567215
2018-05-30 17:42:48 -04:00
dniz
b4529d2a88 Remove unused MathUtils methods and add documentation. Also replace
MathUtils#constrain with Support Library MathUtils#clamp

PiperOrigin-RevId: 197905324
2018-05-30 17:31:27 -04:00
Material Design Team
1af7d53807 [a11y] Invoking updateImportantForAccessibility method in collapsed state in BottomSheetBehavior.
PiperOrigin-RevId: 194967377
2018-05-01 17:11:54 -04:00
Material Design Team
438873fb60 [a11y] When Bottom drawer is open, make its parent view's other child views not important for accessibility.
Move the logic from DrawerLayout.java to BottomSheetBehavior.java now.

PiperOrigin-RevId: 194839644
2018-05-01 17:10:30 -04:00
Alex Saveau
85f23d0f8d Only set BottomSheetDialog state to collapsed in onStart() if state is hidden
PiperOrigin-RevId: 194583962
2018-04-30 12:04:09 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00