I need to achieve the following layout:

I have two TextViews in a rela
I suggest wrapping two TextView's into LinearLayout. Then apply android:weightSum="1" to this LinearLayout and apply android:layout_weight="1" to the child TextView that must extend.
Remember to set the two atributes this it to work perfectly:
android:ellipsize="end"
android:maxLines="1"
and LinearLayout must have android:layout_width="wrap_content"
If you would like this ViewGroup to take whole space, wrap it with another ViewGroup: