Show recipe info in bottom sheet dialog

This commit is contained in:
Kirill Kamakin
2021-11-25 20:06:53 +03:00
parent 6c41c4fcf6
commit e701b5d7df
5 changed files with 36 additions and 29 deletions

View File

@@ -12,4 +12,21 @@
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_margin">@dimen/margin_small</item>
</style>
<style name="ShapeAppearance.AllCornersRounded" parent="ShapeAppearance.MaterialComponents">
<item name="cornerSize">@dimen/rounded_corner_size_default</item>
</style>
<!-- This is a workaround to support always round corners of the bottom sheet
See more at https://github.com/material-components/material-components-android/pull/437#issuecomment-852461685 -->
<style name="NoShapeBottomSheetDialog" parent="ThemeOverlay.MaterialComponents.BottomSheetDialog">
<item name="bottomSheetStyle">@style/NoShapeBottomSheet</item>
</style>
<style name="NoShapeBottomSheet" parent="Widget.MaterialComponents.BottomSheet.Modal">
<item name="shapeAppearance">@null</item>
<item name="shapeAppearanceOverlay">@null</item>
<item name="behavior_fitToContents">false</item>
<item name="android:background">@drawable/recipe_info_background</item>
</style>
</resources>