01ca48bfc8ad80dae2e2809420af1e4b80dd4ae5 |
|
22-Jun-2016 |
Yuichi Araki <yaraki@google.com> |
Automatic peekHeight for bottom sheets Apps can specify app:behavior_peekHeight="auto" to let the BottomSheetBehavior automatically calculate the 16:9 ratio keyline and use it as the peek height while keeping it at least as tall as 64dp. This is now the default parameter of BottomSheetBehavior and BottomSheetDialog. The old default was 0, so this change will not affect existing apps which should already have some value specified for the peek height. Bug: 27260758 Change-Id: Ibbf725aa89352512f4b54fa9fe297c1675f76939
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/BottomSheetModalBase.java
|