Android ListView的addHeaderView中的滑动抽屉

Android ListView的addHeaderView中的滑动抽屉,android,android-layout,Android,Android Layout,这一次有点复杂。。这就是我要做的 我有一个列表视图。我想使用addHeaderView将SlidingDrawer添加到此列表视图 但出于某种原因,我一直在得到这个 cannot have UNSPECIFIED dimensions 这里是XML 这是我在活动中使用的主要xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.co

这一次有点复杂。。这就是我要做的

我有一个列表视图。我想使用addHeaderView将SlidingDrawer添加到此列表视图

但出于某种原因,我一直在得到这个

cannot have UNSPECIFIED dimensions
这里是XML

这是我在活动中使用的主要xml

<?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">
        <ListView 
            android:id="@+id/userReviews"
            android:layout_alignParentTop="true"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"/>

</RelativeLayout>

一些指针将对我有很大帮助….

解决方案将放在活动中的android清单中:

android:windowSoftInputMode="adjustPan"
10-26 18:41:05.652: E/AndroidRuntime(3734): java.lang.RuntimeException: SlidingDrawer cannot have UNSPECIFIED dimensions
10-26 18:41:05.652: E/AndroidRuntime(3734):     at android.widget.SlidingDrawer.onMeasure(SlidingDrawer.java:261)
android:windowSoftInputMode="adjustPan"