0

J'ai réussi à créer le panneau coulissant dans mon premier écran d'application (lecteur de musique), j'ai aussi un tiroir de navigation. Maintenant, le problème est que ce panneau coulissant n'est disponible que sur le premier écran. Je le veux pour tous mes écrans (téléchargements, etc). Je veux la même manière que dans des applications comme Gaana et Google Play Musique. Je refered tout en créant ce panneau glissant vers le hautPanneau coulissant (Umano) confronté à quelques problèmes

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

s'il vous plaît aider, Merci!

+0

Utilisez 'slidingPanel' dans' activity' et remplacez les fragments dans le conteneur 'activity's'. – Wizard

+0

s'il vous plaît élaborer .. – Androidss

Répondre

0

Explaination: -

<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> 

Si vous vous interrogez sur Fragment, suivez ce lien -
How to do FragmentTransaction
Official guide

Bonne programmation!