Forum Xamarin.Android

EditText hint does not float above text

I updated the Android Support libraries from v24.2.1 to v25.1.0 and noticed that in one of my activities the hint does not float above the text anymore.
The hint is set in the layout, text is set by code at the end of OnCreate().
It floats away when the user deletes all text in the box, clicks somewhere else and starts typing again.

Fortunately I don't need to make an update of the support libraries, but it is an interesting problem after all.

< android:layout_width="match_parent" android:layout_height="wrap_content"> < android:inputType="number" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/prefTimeoutEditText" android:text="100" android:hint="@string/addTimeout" /> </>



Sign In or Register to comment.