我有一個「TextView」的問題,我不知道如何解決。我在「LinearLayout」中有三個「TextView」,並且文本將保持與斷線相同的大小。目前,文本是在同一行上,但大小不同。該怎麼辦?下面的圖像和代碼:Android:如何並排修復TextView?
<LinearLayout
android:id="@+id/complementaryInfoLayout"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent"
android:orientation="horizontal"
android:background="@color/purewhite">
<TextView
android:id="@+id/textCategory"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="#545454"
android:layout_marginStart="15dp"
android:text="@string/placeholder" />
<TextView
android:id="@+id/textCity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="#545454"
android:text="@string/placeholder" />
<TextView
android:id="@+id/textNeighborhood"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="#545454"
android:text="@string/placeholder" />
</LinearLayout>