【问题标题】:Sliding Up Panel (Umano) facing some problems上滑面板(Umano)面临一些问题
【发布时间】:2017-02-01 05:45:58
【问题描述】:

我在应用程序(音乐播放器)的第一个屏幕中成功创建了上滑面板,我还有一个导航抽屉。现在的问题是这个向上滑动的面板只在第一个屏幕上可用。我想要它用于我的所有屏幕(下载等)。我想要与 Gaana 和 Google Play Music 等应用程序相同的方式。 我在创建向上滑动面板时提到了这个

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

请帮忙,谢谢!

【问题讨论】:

  • activity 中使用slidingPanel 并替换activity's 容器中的片段。
  • 请详细说明..

标签: android android-layout panel slidingdrawer android-screen-support


【解决方案1】:

说明:-

<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,请点击此链接 -
How to do FragmentTransaction
Official guide

编码愉快!强>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多