Question: My `EditText` configured as follows won't show the hint: 

```
<EditText
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:gravity="right"
    android:hint="The hint..."
    android:scrollHorizontally="true"
    android:singleLine="true" />

```

It works if I set `android:gravity="left"` or if I remove `android:scrollHorizontally` and `android:singleLine` attributes, which is not desirable. Any suggestions?

Answer: 
I wanted my single-line `EditText` box to scroll but keep the hint on the right also.
I had the same issue and got the hint to stick by keeping `gravity="right"`, and setting `singleLine="true"` and `ellipsize="end"`.
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`.