Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cardview corner(edges) display with dark color,how to resolve this?

I use card view for display corner to my auto scroll view pager but cardview corner display with different color please some help me to resolve this issue

<android.support.v7.widget.CardView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
app:cardElevation="0dp"
app:cardCornerRadius="@dimen/_12sdp">

See this image

like image 425
P A Gosai Avatar asked Dec 13 '22 11:12

P A Gosai


1 Answers

try attribute in cardview

app:cardBackgroundColor="@android:color/transparent"
app:cardUseCompatPadding="true"
like image 136
Ashish singh Avatar answered May 21 '23 12:05

Ashish singh