-1
什么在此代码错误,请让我知道的方法,这方法是否正确。什么是布局代码错误
当我加载列表项,列表被扩展至搜索栏,而不是整个屏幕。请指教我。
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:background="#000044">
<TableRow>
<EditText
android:id="@+id/txtUserName"
android:width="270dp" />
<Button
android:id="@+id/Search_button"
android:width="50dp" />
/>
</TableRow>
<TableRow>
<ListView
android:id="@+id/Service_name_list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</TableRow>
</TableLayout>
也告诉我,这将适用于所有屏幕或不。
它没有工作:( – Naruto 2012-04-29 12:30:56