1

私はdevelopers.android.comでマテリアルデザインを学んでいますが、サイトがcard_viewに対して行うべきだと言ったことを正確に行いました。次のエラーのみが表示されます。

「パッケージ「com.google.example.test_app」の属性「cardCornerRadius」のリソース識別子が見つかりません」

これは私が使用している私のコードです。

`

<android.support.v7.widget.CardView
    xmlns:card_view="http://schemas.android.com/apk/res-auto"
    android:id="@+id/card_view"
    android:layout_width="200dp"
    android:layout_height="200dp"
    android:layout_gravity="center"
    android:background="#fff"
    card_view:cardCornerRadius="4dp">

<TextView
    android:id="@+id/my_textview"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/next"
    android:background="#fff"
    android:elevation="5dp" />

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

私が間違っていることを誰かが知っていますか?前もって感謝します。

4

0 に答える 0