I am trying to use a cardwife in my project, but when I use my XML Error in XML parsing: unbound prefix
But if I take my card widget, So it works. I looked at other questions and tried their reactions but it is not working. Is there anything wrong with my code?
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height = "Match_parent" Android: Orientation = "horizontal" & gt; & Lt; Android.support.v7.widget.CardView Android: layout_width = "match_parent" Android: layout_height = "wrap_content" android: layout_margin = "8dp" card_view: card cornerRDs = "2dp" & gt; & Lt; /android.support.v7.widget.CardView> & Lt; / LinearLayout & gt;
& lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" xmlns: card_view = "http://schemas.android.com/apk/res-auto" xmlns: tools = "Http: //schemas.android.com/tools "android: layout_width =" match_parent "android: layout_height =" match_parent "android: orientation =" horizontal "& gt; & Lt; Android.support.v7.widget.CardView Android: layout_width = "match_parent" Android: layout_height = "wrap_content" android: layout_margin = "8dp" card_view: card cornerRDs = "2dp" & gt; & Lt; /android.support.v7.widget.CardView>
You should add xmlns: card_view = "http://schemas.android.com/apk/res-auto"
to your
No comments:
Post a Comment