Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.