Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove CardView's rounded corners

I have used card view inside RecyclerView's ListItem Layout. I have used card_view:cardCornerRadius as 0dp in content card layout, but still my card is showing rounded corners.

I have to remove Rounded Corner's completely. But could find any more solutions for fixing it.

Any help would be really appreciated.

like image 759
ajay Avatar asked Jan 05 '23 06:01

ajay


1 Answers

Apply app:cardCornerRadius="0dp" to your CardView.

<android.support.v7.widget.CardView
        android:layout_width="100dp"
        android:layout_height="100dp"
        app:cardCornerRadius="0dp"/>

<android.support.v7.widget.CardView
        android:layout_width="100dp"
        android:layout_height="100dp"
        app:cardCornerRadius="6dp"/>

This layout results in this output:

like image 168
azizbekian Avatar answered Jan 14 '23 03:01

azizbekian