2016-07-10 12 views
-3

Ich möchte die genaue Sache, die Google Map App für seine Geschäftsseiten hat.ein gleitendes Panel wie Google Maps App?

Ich verwende SlidingUpPanel (lib) in meinem Projekt. Ich habe eine Kartenaktivität und möchte ein gleitendes Panel wie Google Maps mit einem fab-Button auf meinem Schiebefenster haben. this is what i want

Ich habe versucht, den Hintergrund meines Layouts transparent zu machen. aber es hat nicht funktioniert.

Das ist mein Layout XML:

<com.sothree.slidinguppanel.SlidingUpPanelLayout 
xmlns:sothree="http://schemas.android.com/apk/res-auto" 
xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:app="http://schemas.android.com/tools" 
android:id="@+id/SlidingPanel" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:gravity="bottom" 
sothree:umanoPanelHeight="96dp" 
sothree:umanoShadowHeight="4dp" 
sothree:umanoAnchorPoint="0.7" 
sothree:umanoParallaxOffset="100dp" 
sothree:umanoOverlay="true"> 

<android.support.v7.widget.Toolbar 
    android:id="@+id/toolbar" 
    android:minHeight="?attr/actionBarSize" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    app:titleTextColor="@android:color/white" 
    app:layout_scrollFlags="scroll|enterAlways" 
    android:background="?attr/colorPrimary"> 
</android.support.v7.widget.Toolbar> 

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 

    <android.support.v4.widget.NestedScrollView 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:id="@+id/NestedScrollView"> 

     <LinearLayout 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:orientation="vertical"> 

      <android.support.v7.widget.Toolbar 
       android:id="@+id/SlidingPanelToolbar" 
       android:minHeight="?attr/actionBarSize" 
       android:layout_width="match_parent" 
       android:layout_height="?attr/actionBarSize" 
       android:background="@color/colorPrimary"> 
      </android.support.v7.widget.Toolbar> 

      <TextView 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" 
       android:text="@string/aaa" 
       android:background="@android:color/white"/> 

     </LinearLayout> 

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

</LinearLayout> 

(Sorry für mein Englisch)

+0

Bearbeiten Sie Ihre Frage und fügen Sie hinzu, was genau Sie brauchen. Es ist schwierig, solche nicht spezifischen Fragen zu beantworten. Was magst du an der Bibliothek nicht? Welche Funktion fehlt Ihnen, die Sie brauchen? – sp0rk

+0

@spork Ich habe die Frage bearbeitet –

Antwort