首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

解决listView挡住button的有关问题

2012-09-24 
解决listView挡住button的问题?xml version1.0 encodingutf-8?RelativeLayout xmlns:androidht

解决listView挡住button的问题

<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent" android:layout_height="fill_parent">    <Button android:layout_width="fill_parent"        android:layout_height="wrap_content" android:id="@+id/testbutton"        android:text="@string/hello" android:layout_alignParentBottom="true" />    <ListView android:layout_width="fill_parent"        android:layout_height="fill_parent" android:id="@+id/list"        android:layout_alignParentTop="true" android:layout_above="@id/testbutton" /></RelativeLayout>


android:layout_above="@id/testbutton" 让ListView 在 Button之上

热点排行