0

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>
reVerse
  • 35,075
  • 22
  • 89
  • 84
Bhargav Jhaveri
  • 2,123
  • 1
  • 18
  • 23

1 Answers1

0

As far as I have come across, this has been a bug in Android Support library for design.

Android Source Bug

So I think this will be resolved in upcoming updates.

Bhargav Jhaveri
  • 2,123
  • 1
  • 18
  • 23