我把我的底片设计成这样
<style name="ShapeAppearanceOverlay.BottomSheet" parent="">
<item name="cornerSize">30dp</item>
<item name="cornerFamily">rounded</item>
</style>
它的工作很好我的底部工作表来了30dp的圆角半径,但如果我推幻灯片上我的底部工作表的角落变平了,我怎么能防止这种情况发生?
第一次
我把我的底片设计成这样
<style name="ShapeAppearanceOverlay.BottomSheet" parent="">
<item name="cornerSize">30dp</item>
<item name="cornerFamily">rounded</item>
</style>
它的工作很好我的底部工作表来了30dp的圆角半径,但如果我推幻灯片上我的底部工作表的角落变平了,我怎么能防止这种情况发生?
第一次
2条答案
按热度按时间qlfbtfca1#
在底部工作表中使用此样式作为透明背景
uurity8g2#
我不知道,如果你已经解决了这个问题,但我在这里找到了一个解决方案,以防止尖角时,其扩大.她是链接:https://github.com/material-components/material-components-android/issues/1278#issuecomment-844979762
避免使用形状shapeAppearanceOverlay,并将其添加到用于bottomSheetDialogFragment的布局中,一个可绘制对象如下所示-〉
对于样式,请使用以下内容:
这对我来说很有效,但我建议你看看我上面分享的链接;)