I need to draw a horizontal line below a text field such that the width of the line equals the text width (not the width of the full screen).
In my app I have a textview
If you use a RelativeLayout you can use the align-attributes:
RelativeLayout
align