Длинный Android TextView выталкивает другие виды за пределы экрана
У меня есть два TextViews бок о бок. TextView1 имеет различную длину текста, а TextView2 всегда говорит «+ #». Однако когда TextView1 становится длинным, он выталкивает TextView2 за пределы экрана. Любые идеи, как это исправить? Вот мой код компоновки:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/TextView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="end"
android:textSize="13sp"/>
<TextView
android:id="@+id/TextView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textSize="13sp"/>
</RelativeLayout>