cardview style

This commit is contained in:
Juja2025 2025-02-19 16:15:35 +03:00
parent e00a7aa591
commit 38a0e77ebb
2 changed files with 2 additions and 4 deletions

View File

@ -4,8 +4,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="5dp" android:layout_margin="5dp"
app:cardCornerRadius="8dp"
app:cardElevation="0dp"
style="@style/Theme.UiTemplate.CardView" style="@style/Theme.UiTemplate.CardView"
app:cardPreventCornerOverlap="true" app:cardPreventCornerOverlap="true"
app:cardUseCompatPadding="true"> app:cardUseCompatPadding="true">

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<style name="Theme.UiTemplate.CardView" parent="Widget.MaterialComponents.CardView"> <style name="Theme.UiTemplate.CardView" parent="Widget.MaterialComponents.CardView">
<item name="cardBackgroundColor">@color/BackgroundGray</item>
<item name="cardElevation">0dp</item> <item name="cardElevation">0dp</item>
<item name="cardCornerRadius">120dp</item> <item name="cardCornerRadius">30dp</item>
<item name="cornerSize">10dp</item>
</style> </style>
</resources> </resources>