I cannot change the inputType, hint anything for my EditText

You will get this result after drag and drop:
            <EditText
            android:id="@+id/editText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ems="10"
            android:inputType="textPersonName"
            android:text="Name" />

What you need is to do :
1. If you want hint to show remove line ” android:text=”Name””

        <EditText
        android:id="@+id/editText"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="10"
        android:inputType="textPersonName"
        android:hint="hint text goes here" />

Leave a Comment