我有ListView在我的Android活动上显示一些文字。我面临的问题是某些文本比另一文本大,因此ListView行的大小不同。
我希望所有的行都是最大的行。这样,所有文本都将显示,并且它们都将具有相同的大小。
这是我的xml:
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:id="@+id/favorite_checkbox"
android:layout_width="0dp"
android:layout_height="fill_parent"
style="?android:attr/starStyle"
android:layout_weight="1"
/>
android:id="@+id/IdText"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="2"
/>
android:id="@+id/StationNameText"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="2"
/>
感谢您的时间。