Below is the code that I am using. TextInputLayout
is included as a part of Androids new Design library. But it does show the hint inside of the EditText
. Am I using this the wrong way?
Once I click on the EditText the hint text animation works properly. Also when I click on some other EditText the hint text returns properly. So that is also not an issue. But I am not able to view the hint text in the first place.
<android.support.design.widget.TextInputLayout
android:id="@+id/tilDrugName"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/edtDrugName"
style="@style/ETPrescription"
android:hint="@string/drug_name"/>
</android.support.design.widget.TextInputLayout>