My EditText
configured as follows won\'t show the hint:
No need of android:scrollHorizontally
attribute. Remove it.EditText
is a fixed item on the screen. we want scroll the layout contains the EditText is enough. that is the best design too. you have put android:ellipsize="end"
instead of android:scrollHorizontally
.
This is how, I did for by EditText
to have hint in it.
<EditText
android:id="@+id/productQuantity"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="right|center_vertical"
android:hint="@string/quantity"
android:inputType="numberSigned"
android:ellipsize="end"
android:singleLine="true" >
</EditText>
using android:ellipsize="end"
fixed it for me
Weird bug !! (but Android has a lot of these weirdo bug)
You need to give text color to hint
android:textColorHint="#000000"