when i try to add a shadow to my cardView .. it works but only with a small width of card like below
so when i make the widht equal to 272dp and that what i want, the corners have no shadow like so
and this is my code! can anybody help?! & thank you too much :)
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:clipToPadding="false"
android:clipChildren="false"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="17dp"
android:text="Available in" />
<androidx.cardview.widget.CardView
android:layout_width="160dp"
android:layout_height="58dp"
android:layout_gravity="center"
android:cardElevation="10dp"
android:layout_margin="8dp"
/>
</LinearLayout>
</LinearLayout>