2016-07-10 6 views
-3

Googleマップアプリがそのビジネスページに対して持っている正確なものが欲しいです。Googleマップのアプリと同じようにスライドアップパネルですか?

私のプロジェクトでSlidingUpPanel(lib)を使用しています。私はマップ活動をしています。私はスライドパネル上にファブボタン付きのGoogleマップのようなパネルをスライドさせたいと思っています。 this is what i want

レイアウトの背景を透明に設定して作成しようとしました。しかしそれはうまくいかなかった。

これは私のレイアウト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> 

(私の英語のため申し訳ありませんが)

+0

あなたの質問を編集し、必要なものを含めてください。そのような具体的な質問に答えるのは難しいです。あなたがライブラリについて気に入らないのは何ですか?どんな機能が欠けていますか? – sp0rk

+0

@spork私は質問を編集した –

答えて

1

BottomSheet UIパターンです。それはversion 23.2

Hereに​​に追加された

は、それを使用する方法のサンプルチュートリアルです。

+0

私は私の質問ではっきりしていないと思う。私はそれを崇拝:) –

関連する問題