material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.37k stars 3.07k forks source link

not Rounded Corners last version #3964

Open MehdiSekoba opened 10 months ago

MehdiSekoba commented 10 months ago

Hello, I am using the latest version of the material library, but the corners of the dialog are not rounded I also applied the styles correctly Device xiaomi 10c android 13 I used another library and there was no problem `

<style name="Base.Theme" parent="Theme.Material3.Light.NoActionBar">
    <!-- Customize your light theme here. -->
    <!-- <item name="colorPrimary">@color/my_light_primary</item> -->

</style>

<style name="Theme.Wallpaper" parent="Base.Theme.">
    <item name="android:windowTranslucentStatus">true</item>
    <item name="android:windowTranslucentNavigation">true</item>
    <item name="android:forceDarkAllowed" tools:targetApi="Q">false</item>
    <item name="android:windowBackground">@color/white</item>
    <item name="android:enforceStatusBarContrast" tools:targetApi="q">true</item>
    <item name="android:enforceNavigationBarContrast" tools:targetApi="q">true</item>
    <item name="android:statusBarColor">@android:color/transparent</item>
    <item name="android:windowLightStatusBar">true</item>
    <item name="chipStyle">@style/ChipStyleTag</item>
    <item name="bottomSheetDialogTheme">@style/ThemeOverlay.App.BottomSheetDialog</item>

</style>
<!--BottomSheetDialog-->
<style name="ThemeOverlay.App.BottomSheetDialog" parent="ThemeOverlay.Material3.DayNight.BottomSheetDialog">
    <item name="bottomSheetStyle">@style/Widget.App.BottomSheet.Modal</item>
</style>

<style name="Widget.App.BottomSheet.Modal" parent="Widget.Design.BottomSheet.Modal">
    <item name="shapeAppearance">@style/ShapeAppearance.App.BottomSheet.Modal</item>
</style>

<style name="ShapeAppearance.App.BottomSheet.Modal" parent="">
    <item name="cornerFamily">rounded</item>
    <item name="cornerSizeTopRight">@dimen/_18mdp</item>
    <item name="cornerSizeTopLeft">@dimen/_18mdp</item>
    <item name="cornerSizeBottomRight">0dp</item>
    <item name="cornerSizeBottomLeft">0dp</item>
</style>

`

dsn5ft commented 10 months ago

@MehdiSekoba can you attach a video of the issue with more explanation?