Android的ListView控件不扩大整个屏幕? [英] Android ListView doesn't expand the whole screen?
本文介绍了Android的ListView控件不扩大整个屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下活动:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/FiltersLayout" android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent"
>
<ScrollView android:id="@+id/FiltersScroll"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
<ExpandableListView android:id="@+id/featureList"
android:layout_width="fill_parent" android:stretchColumns="*" android:orientation="vertical" android:layout_height="fill_parent">
</ExpandableListView>
</ScrollView>
</LinearLayout>
我需要的 ExpandableListView
划伤屏幕,但它显示如下:
I need the ExpandableListView
to scratch the screen, but it shows as the following:
![Anzroiz的ListView] [1]
![Anzroiz ListView][1]
推荐答案
试着改变的高度滚动型
到 FILL_PARENT
,但真的是你应该省略滚动型
完全为的ListView
提供了自己的滚动。
Try changing the height of the ScrollView
to fill_parent
, but really you should omit the ScrollView
entirely as a ListView
provides its own scrolling.
这篇关于Android的ListView控件不扩大整个屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文