Skip to content

Commit c7229cb

Browse files
Fixed embedded card appearance
1 parent 676d096 commit c7229cb

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

iterableapi-ui/src/main/res/layout-v21/card_view.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
app:cardCornerRadius="8dp"
1515
app:cardElevation="0dp"
1616
android:background="@drawable/banner_card_border"
17+
android:clipToOutline="true"
18+
android:outlineProvider="background"
1719
android:orientation="vertical">
1820

1921
<com.google.android.material.imageview.ShapeableImageView
@@ -26,7 +28,7 @@
2628
app:layout_constraintEnd_toEndOf="parent"
2729
app:layout_constraintStart_toStartOf="parent"
2830
app:layout_constraintTop_toTopOf="parent"
29-
app:shapeAppearanceOverlay="@style/classCardStyle" />
31+
/>
3032

3133
<LinearLayout
3234
android:id="@+id/embedded_message_text_container"
@@ -82,7 +84,8 @@
8284
android:orientation="horizontal"
8385
app:layout_constraintEnd_toEndOf="parent"
8486
app:layout_constraintStart_toStartOf="parent"
85-
app:layout_constraintTop_toBottomOf="@id/embedded_message_text_container">
87+
app:layout_constraintTop_toBottomOf="@id/embedded_message_text_container"
88+
app:layout_constraintBottom_toBottomOf="parent">
8689

8790
<com.google.android.material.button.MaterialButton
8891
android:id="@+id/embedded_message_first_button"

iterableapi-ui/src/main/res/layout/card_view.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
app:cardCornerRadius="8dp"
1515
app:cardElevation="0dp"
1616
android:background="@drawable/banner_card_border"
17+
android:clipToOutline="true"
18+
android:outlineProvider="background"
1719
android:orientation="vertical">
1820

1921
<com.google.android.material.imageview.ShapeableImageView
@@ -26,7 +28,7 @@
2628
app:layout_constraintEnd_toEndOf="parent"
2729
app:layout_constraintStart_toStartOf="parent"
2830
app:layout_constraintTop_toTopOf="parent"
29-
app:shapeAppearanceOverlay="@style/classCardStyle" />
31+
/>
3032

3133
<LinearLayout
3234
android:id="@+id/embedded_message_text_container"
@@ -81,7 +83,8 @@
8183
android:orientation="horizontal"
8284
app:layout_constraintEnd_toEndOf="parent"
8385
app:layout_constraintStart_toStartOf="parent"
84-
app:layout_constraintTop_toBottomOf="@id/embedded_message_text_container">
86+
app:layout_constraintTop_toBottomOf="@id/embedded_message_text_container"
87+
app:layout_constraintBottom_toBottomOf="parent">
8588

8689
<com.google.android.material.button.MaterialButton
8790
android:id="@+id/embedded_message_first_button"

0 commit comments

Comments
 (0)