2014-11-24 86 views

回答

0

創建新的線性佈局
1.Click圖形佈局
2.Click進入下一狀態//頂部第三個選項
3.Click景觀

輸入您這樣

<?xml version="1.0" encoding="utf-8"?>  
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent"  
    android:layout_height="match_parent"  
android:orientation="horizontal" > 
<ListView 
    android:id="@+id/list1" 
    android:layout_width="wrap_content" 
    android:layout_height="match_parent" 
    android:layout_weight="1"/> 
<ListView 
    android:id="@+id/list2" 
    android:layout_width="wrap_content" 
    android:layout_height="match_parent" 
    android:layout_weight="1"/>  
</LinearLayout> 

您的結果將是這樣的
enter image description here

0

Here是你可以參考

0

你試圖把你的列表視圖內的另一個parent ListView,其方向水平的示例項目?

相關問題