EditText android:hint not disappearing onFocus
问题 I am on Android 4+ and I am trying to add hints to my edit text widgets. I tried adding the hint to the layout as follows... <EditText android:id="@+id/bar_name" android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="text" android:hint="@string/bar_name_hint" /> But when I focus on the Text box it writes over the hint instead of the hint disappearing. I found documentation on adding a onFocus listener to the EditText, but I would like to avoid doing this