Android 文本视图在一行中,切断最后一个文本视图

Android 文本视图在一行中,切断最后一个文本视图,android,android-layout,Android,Android Layout,我有一个带有3个主要文本视图和2个文本视图的水平线性布局,用于划分3个主要文本视图。文本视图的内容是动态的。有时它非常短,有时它非常长。他们都应该集中在中间,他们应该保持在一起,没有他们之间的空间。我的主要问题是,如果一个文本视图很长,它会剪切其他文本视图 以下是布局代码: <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"

我有一个带有3个主要文本视图和2个文本视图的水平线性布局,用于划分3个主要文本视图。文本视图的内容是动态的。有时它非常短,有时它非常长。他们都应该集中在中间,他们应该保持在一起,没有他们之间的空间。我的主要问题是,如果一个文本视图很长,它会剪切其他文本视图

以下是布局代码:

 <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dp"
        android:gravity="center"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/network"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Network 1"
            android:textSize="16sp" />

        <TextView
            android:id="@+id/placeholder"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text=" - "
            android:textSize="16sp" />

        <TextView
            android:id="@+id/genre"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:text="Genre 1"
            android:textSize="16sp" />

        <TextView
            android:id="@+id/placeholder2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text=" - "
            android:textSize="16sp" />

        <TextView
            android:id="@+id/runtime"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="120'"
            android:textSize="16sp" />
    </LinearLayout>

例如:如果体裁文本视图很长,则运行时文本视图不显示任何内容。我还尝试将版面权重设置为体裁文本视图的1,但是占位符和体裁文本视图之间有很大的空间。。。所以这不能解决我的问题

一些截图确实显示了我的意思:

无权重的文本视图:

带权重的文本视图:


有什么建议可以解决这个问题,让所有的案例看起来都不错吗?

有必要一次展示所有类型的案例吗?如果不是,您可以使用微调器让用户选择任何一个。不,所有类型都应该同时显示,这只会解决一个问题,即如果类型太长,其他视图会被切断,但是如果网络文本视图很长,其他视图也会被切断