D
D
dimasik1002002018-05-04 21:39:12
Java
dimasik100200, 2018-05-04 21:39:12

Why does the background in design suddenly change to gray when using CardView?

Why does the background in design suddenly change to gray when using CardView? I change CardView to any other layout and the color becomes white. How to fix it? (unpleasant to work)
Here is the card code

<android.support.v7.widget.CardView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:card_view="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="7dp"
    card_view:cardCornerRadius="5dp">

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

5aeca8bec92c8211218145.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question