我使用这个库https://github.com/dlukashev/AndroidSlidingUpPanel-foursquare-map-demo向上滑动面板 - 谷歌下细线滑动面板mapfragment
但是,它包含一个错误,这不是盖的任何位置进行slidinguppanel。当我触摸任何地方扩展面板(列表视图)效果很好,但是当我试图通过列表视图的顶部(屏幕2上的蓝色线)面板隐藏在地图(framelayout)(screen3 )
甚至有可能在mapfragment和listview其余部分下的这个蓝线隐藏面板扩展它很好吗?
任何想法为什么?请给我一个提示如何解决它?
请看屏幕:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<org.sothree.slidinguppanel.SlidingUpPanelLayout
android:id="@+id/slidingLayout"
android:gravity="bottom"
app:shadowHeight="0dp"
app:paralaxOffset="@dimen/paralax_offset"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<FrameLayout
android:gravity="top"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/button">
<RelativeLayout
android:id="@+id/mapContainer"
android:layout_width="fill_parent"
android:layout_height="497dp"/>
</FrameLayout>
<RelativeLayout
android:id="@+id/slidingContainer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/button">
<View
android:id="@+id/transparentView"
android:visibility="gone"
android:layout_width="fill_parent"
android:layout_height="@dimen/map_height"
android:layout_alignParentTop="true"/>
<ListView
android:id="@+id/listView1"
android:cacheColorHint="@android:color/white"
android:drawSelectorOnTop="true"
android:dividerHeight="@dimen/divider_height"
android:divider="@android:color/darker_gray"
android:background="@android:color/transparent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@id/transparentView"
android:smoothScrollbar="true"
android:layout_marginTop="0dp"/>
</RelativeLayout>
</org.sothree.slidinguppanel.SlidingUpPanelLayout>
</RelativeLayout>
你可以隐藏面板??? – Asmi
我需要一些帮助..我看到了代码,但我没有隐藏滚动面板..我想隐藏面板..当应用程序运行时,它会显示从底部只有一行的列表视图? – Asmi