Android 将视图置于滑动抽屉把手上方

Android 将视图置于滑动抽屉把手上方,android,Android,我有一个滑动抽屉视图的应用程序。我的问题是,在抽屉活动布局中,我有一个列表视图,该视图位于滑动抽屉手柄所在的屏幕底部。因此,无法看到列表中的最后一个元素,因为句柄与它重叠。 我怎样才能解决这个问题 提前谢谢 我通过在listview底部添加空间解决了这个问题 通过以下步骤: 1.在布局文件夹中创建space_fotter.xml space_fotter.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns

我有一个滑动抽屉视图的应用程序。我的问题是,在抽屉活动布局中,我有一个列表视图,该视图位于滑动抽屉手柄所在的屏幕底部。因此,无法看到列表中的最后一个元素,因为句柄与它重叠。 我怎样才能解决这个问题


提前谢谢

我通过在listview底部添加空间解决了这个问题

通过以下步骤:

1.在布局文件夹中创建space_fotter.xml

space_fotter.xml

<?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="wrap_content"
 android:background="@color/color_appBackground">
<ImageView
        android:gravity="center"
        android:src = "@drawable/bg_white"
        android:layout_width="10dp"
        android:layout_height="50dp"
        /> 
</LinearLayout>
3.将其添加到listview:

private ListView lv;
lv =(ListView)findViewById(android.R.id.list); 
lv.addFooterView(SpaceFotter );

希望它能有所帮助

简单的方法是将android:layout_marginBottom=“50dp”添加到列表视图中
private ListView lv;
lv =(ListView)findViewById(android.R.id.list); 
lv.addFooterView(SpaceFotter );