0
In the xml of my edittext I put the property Gravity to always leave the cursor at the end, however I needed to leave the text hint at the beginning.
It is possible to set a Gravity property for the text and another for the hint?
Follow the xml code of my Edittext:
<EditText
android:id="@+id/txtHorimetro"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="#000000"
android:inputType="numberDecimal"
android:hint="Horimetro *"
android:textSize="20sp"
android:gravity="right"
android:layout_marginTop="20dp"
android:layout_below="@+id/txtLitros"
android:layout_alignStart="@+id/txtLitros"
android:layout_alignEnd="@+id/txtLitros" />