2010-06-28 82 views
0

Listview的最後一項總是在editText下。如何解決它出現在editText上面?我的xml低於 -edittext下的Listview項

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    xmlns:android="http://schemas.android.com/apk/res/android"> 
     <ListView android:id="@+id/android:list" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_above="@+id/txtTo_e"/>    
    <EditText android:id="@+id/txtTo_e" 
     android:layout_width="230dip" 
     android:layout_height="wrap_content" 
     android:textSize="18sp" 
     android:hint="Compose" 
     android:layout_alignParentBottom = "true" 
     android:layout_alignParentLeft="true"/> 
    <Button android:text="Done" 
     android:id="@+id/btnD_e" 
     android:layout_width="85dip" 
     android:layout_height="wrap_content"    
     android:layout_alignParentBottom = "true" 
     android:layout_alignParentRight="true"/>            
</RelativeLayout> 

謝謝。

PS:當我打開這個論壇時,設置工具欄是不可見的。抱歉。在我的電腦中,我無法點擊評論按鈕並看到工具欄。對不起,給你帶來不便。

+0

你的問題不清楚。根據您的具體情況提供更多信息和更多代碼。 – Shade 2010-06-28 09:39:26

回答

1

也許改變

android:layout_below="@+id/txtToText_e"

android:layout_above="@+id/txtToText_e"

和刪除android:layout_above="@+id/txtTM"幫助?

你在哪裏"@+id/txtTM"查看btw?