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: 
The below worked for me:

```
<EditText
    android:id="@+id/UserText"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:layout_alignRight="@+id/UserPassword"
    android:layout_marginTop="85dp"
    android:ems="10"
    android:hint="@string/UserHint"
    android:inputType="textPersonName"
    android:singleLine="true"
    android:text="@string/UserName" >

    <requestFocus />
</EditText>

```
I changed the style to `"@style/Base.WidgetMaterialComponents.TextImputEditText"`. For me it wasn't gravity or color.