I have a TextInputEditText as below:
<android.support.design.widget.TextInputLayout
android:id="@+id/tilEmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/Theme.AppCompat">
<android.support.design.widget.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/etEmail"
android:hint="@string/Email"/>
</android.support.design.widget.TextInputLayout>
However, if I set the background color for the TextInputEditText, the hint Text disappeared.
<android.support.design.widget.TextInputLayout
android:id="@+id/tilEmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/Theme.AppCompat">
<android.support.design.widget.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/etEmail"
android:hint="@string/Email"
android:background="@android:color/white"/>
</android.support.design.widget.TextInputLayout>
I am trying to put it in style and then apply the style to the TextInputEditText but it does not work.
Anyone knows how I can customise it? I am working on Android in Xamarin.
Thanks.