2

嗨我正在構建一個地圖應用程序,並試圖讓它,所以當你點擊一個製造商打開滑動窗格。它按照我想要的方式工作,但當窗格關閉時,您仍然可以看到它懸垂的一點。我想把它隱藏在屏幕上,所以你看到的是地圖片段。SlidingPaneLayout幻燈片窗格懸垂主窗格

activity_main.xml中

<?xml version="1.0" encoding="utf-8"?> 

<android.support.v4.widget.SlidingPaneLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/sliding_layout" 
    android:layout_width="fill_parent" 
    android:layout_height="match_parent" > 

<fragment 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/map" 
    android:layout_width="fill_parent" 
    android:layout_height="match_parent"  
    android:layout_margin="0dp" 

    class="com.google.android.gms.maps.SupportMapFragment" /> 

    <fragment 
     android:id="@+id/photo" 
     android:name="com.example.mapapp.SliderFragment" 
     android:layout_width="fill_parent" 
     android:layout_height="match_parent" 
     android:layout_weight="1" 
     android:layout_margin="0dp" /> 

    </android.support.v4.widget.SlidingPaneLayout> 

看到下面的圖片

enter image description here

+0

我試圖張貼的截圖,但沒有代表。 :( – tom

+0

添加圖像到這個網站,並添加鏈接http://imgur.com/ –

+0

http://imgur.com/WcBmHUk – tom

回答