Android - how to make 2 hints on an EditText?



I know I can set a hint text for an EditText.

And currently, I just use space to separate 2 hints. However, the right hint text does not align to right of EditText.



<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="30sp"
android:hint="LEFT RIGHT" />


What I want is as following style: enter image description here


How can make one hint on left and another hint on right for a single EditText?


No comments:

Post a Comment