我有一个视图,其中包含一个顶视图(这是一个mapview,但它尚未实现)和它下面的列表视图。Android的listview覆盖另一个视图
我想要做的是让顶部视图的顶部覆盖顶部视图的底部一点点。这是类似于我想要实现的东西:
(无标签头和图像会的MapView)
我不知道我怎样才能实现那,这里是我迄今为止:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<View
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="250dp"
android:background="@android:color/holo_red_dark">
</View>
<com.hmm.widgets.CustomListView
android:id="@+id/runners_list"
android:background="@android:color/darker_gray"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:dividerHeight="10dp"
android:divider="@android:color/darker_gray">
</com.hmm.widgets.CustomListView>
</RelativeLayout>
我试过负边界,这没有奏效。我不确定我该如何实现类似的功能。我应该使用FrameLayout吗?
我加入RelativeLayout的替代解决方案。 –
你是如何获得该列表视图顶部的填充以显示图像的? – mastrgamr