0

私はapp(音楽プレーヤー)の最初の画面にスライディングアップパネルを作成しました。また、ナビゲーションドロワーもあります。今問題は、このスライドアップパネルが最初の画面でのみ利用可能であることです。私はすべての自分の画面(ダウンロードなど)に欲しい。GaanaやGoogle Playミュージックなどのアプリと同じようにしたい。パネルSliding Up Panel(Umano)いくつかの問題に直面

https://www.numetriclabz.com/implementation-of-sliding-up-panel-using-androidslidinguppanel-in-android-tutorial/

をスライド作成中 は、私は助けてください、これを参照さ、ありがとう!

+0

'activity'に' slidingPanel'を使用し、 'activity's'コンテナにあるフラグメントを置き換えます。 – Wizard

+0

詳細を教えてください.. – Androidss

答えて

0

、について説明: -
How to do FragmentTransaction
Official guide

ハッピーコーディング -

<com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:id="@+id/frag_product_list_panel" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:clipToPadding="false" 
    android:gravity="bottom" 
    android:orientation="vertical" 
    app:umanoDragView="@+id/dragView" 
    app:umanoOverlay="true" 
    app:umanoPanelHeight="0dp" 
    app:umanoParallaxOffset="0dp" 
    app:umanoShadowHeight="@dimen/2dp"> 

    <!-- Main content, Use this container to transact fragments --> 
    <FrameLayout 
     android:id="@+id/dragView" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" /> 

    <!-- Sliding content --> 
    <LinearLayout 
     android:id="@+id/dragView" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:animateLayoutChanges="true" 
     android:background="@android:color/white" 
     android:clickable="true" 
     android:focusable="false" 
     android:orientation="vertical"> 

    <!-- content of sliding panel goes here --> 

    </LinearLayout> 

</com.sothree.slidinguppanel.SlidingUpPanelLayout> 

あなたがについてFragmentを迷っている場合は、このリンクに従ってください!

関連する問題