Namespace prefix card_view is not defined xamarin

RoyDoronRoyDoron USMember ✭✭
edited October 2016 in Xamarin.Android

Hey,

I want to use CardView in my Android App.

I followed this Instructions:

https://developer.xamarin.com/guides/android/user_interface/cardview/

For trying to reach :
stackoverflow.com/questions/38367836/drop-shadow-around-all-the-four-sides-of-an-edittext-in-android-studio

While Trying to Complie, And I ended up with the following Errors:
Severity Code Description Project File Line Suppression State Error Error parsing XML: unbound prefix TuttnauerX.Droid C:\Sources\Tuttnauer\Mobile\TuttnauerX\TuttnauerX.Droid\Resources\layout\signup.axml 20 Error Namespace prefix 'card_view' is not defined. TuttnauerX.Droid C:\Sources\Tuttnauer\Mobile\TuttnauerX\TuttnauerX.Droid\Resources\layout\signup.axml 27

Here is my .axml code:
<android.support.v7.widget.CardView android:layout_gravity="center" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="100dp" android:layout_marginRight="40dp" android:layout_marginLeft="40dp" android:padding="20dp" card_view:cardUseCompatPadding="true" card_view:cardCornerRadius="2dp" card_view:cardElevation="7dp" card_view:contentPadding="10dp"> <EditText android:id="@+id/ipAddressText" android:digits="0123456789." android:inputType="number" android:hint="@string/ip_address_hint" android:textColorHint="@color/ip_address_text_hint_color" android:textStyle="bold" android:gravity="center_horizontal" android:singleLine="true" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" android:textAppearance="@style/largeEdittextText"/> </android.support.v7.widget.CardView>

I even tried Xamarin Example:
https://components.xamarin.com/gettingstarted/xamandroidsupportv7cardview
and Complied.

Still same error...

much obliged!

Best Answers

Answers

Sign In or Register to comment.