Remove Rounded Corners CardView

I have used the map appearance inside the RecyclerView

Layout ListItem. I used card_view:cardCornerRadius

as 0dp in the content map layout, but still my map shows rounded corners.

I need to completely remove the rounded corner. But more solutions could be found to fix it.

Any help would be really appreciated.

+3


source to share


3 answers


Apply app:cardCornerRadius="0dp"

to yours 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 leads to this conclusion:

oOsse.png

+3


source


Remove attribute card_view: cardCornerRadius from xml and try again. There is no need to assign it to 0dp.



0


source


No need to write card_view: cardCornerRadius, just remove it. If you don't get any solution, just put my code in Style and refer to it in Cardview.

  <style name="CardViewStyle" parent="CardView">
 <item name="cardCornerRadius">0dp</item>
 <item name="cardElevation">0dp</item>

      

0


source







All Articles