Android CardCornerRadius gap

I'm trying to use the new CardView Widget in my project, but on some devices running Android 2.3 there is a gap between the corners of the CardView (see below).

This is in my XML file:

<android.support.v7.widget.CardView
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    app:contentPadding="50dp"
    app:cardCornerRadius="50dp"
    android:layout_margin="10dp">

    <View
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_gravity="center"
        android:background="@color/Theme.Apptheme.Color" />

</android.support.v7.widget.CardView>

      

And this is how I see it on the 3.2 QVGA AVD screen

CardView Corner Gap

There is even a verified gap in another device like the LG Optimus Sol.

Is there a way to prevent this?

+3


source to share


1 answer


I had the same problem, it seems to have been resolved with the latest update of the support library.



0


source







All Articles