如果它是一个列表,请使用这个很棒的库来构建交错列表。
https://github.com/lucasr/twoway-view
如果不是列表->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
android:text="Cell1"
android:layour_weight="1"
android:layout_height="wrap_content"/>
<TextView
android:layout_width="match_parent"
android:text="Cell2"
android:layour_weight="1"
android:layout_height="wrap_content"/>
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:text="Cell3"
android:layout_height="wrap_content"/>
</LinearLayout>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句