我使用這個庫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