Вы можете использовать вес и гравитацию, вид текста силы веса, чтобы взять максимальную доступную ширину, но вам нужно установить ширину 0dp, гравитация просто поместит текст в доступное пространство, например:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="first text"/>
<TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:gravity="end"
android:text="second text"/>
</LinearLayout>