3

我想在我的项目中使用新的CardView UI Widget,但在运行Android 2.3的某些设备上CardView角落之间存在差距(请参见下文)。Android CardView cardCornerRadius gap

这是我的xml文件:

<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> 

这是我看到它在3.2的QVGA屏幕AVD

CardView Corner Gap

在其他设备,如LG擎天柱溶胶的方法,有甚至是一个虚拟的差距。

有没有办法防止这种情况发生?

回答

0

我有同样的问题,它似乎与上次支持库更新解决。

+0

你说得对。看来,新的更新有这个解决方案,谢谢。 – GLopez 2014-12-05 19:09:56