现在的EditText之下的ListView显示 [英] EditText now showing under ListView
本文介绍了现在的EditText之下的ListView显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
下面是我的布局:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">
<ListView android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@android:id/list" />
<EditText android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/search" android:hint="Filter results" />
是什么原因造成我的的ListView
来掩饰我的编辑文本?
What is causing my ListView
to cover up my edit text?
推荐答案
也许尝试做的:
<ListView
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="fill_parent" android:id="@android:id/list"/>
<EditText
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:id="@+id/search"
android:hint="Filter results"/>
这样,你的的ListView
将仅增长填写的未的空间,不管它自己的内容的要求。
That way your ListView
will grow to fill only unused space regardless of its own content requirements.
这篇关于现在的EditText之下的ListView显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文