2010-06-28 83 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?