Forum Xamarin.Android

http://schemas.android.com/apk/res/android:hint attribute is not declared TextInputLayout

AnonymousUserAnonymousUser USMember ✭✭✭
edited February 2018 in Xamarin.Android

I have the following axml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <android.support.design.widget.TextInputLayout
        android:id="@+id/text_input_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Label">
        <EditText
            android:id="@+id/edit_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="text" />
    </android.support.design.widget.TextInputLayout>
</LinearLayout>

android:hint is underlined with blue. When I run the app I get the following warning: http://schemas.android.com/apk/res/android:hint attribute is not declared and the app doesn't start.

Answers

  • Ahsan_SiddiqueAhsan_Siddique PKMember ✭✭✭✭

    This error simply says that you are using hint field in design widget that is not supported so you need to remove this line of code from here and again your app.

Sign In or Register to comment.