umano / AndroidSlidingUpPanel

This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano.
http://umano.me
Apache License 2.0
9.5k stars 2.27k forks source link

Viewpager's recycler is not scrollable in SlidingUpPanel #894

Open giricodebase opened 6 years ago

giricodebase commented 6 years ago

I have Viewpager in with inflates RecyclerView It is not scrollable when I put into BottomSheet, So I tried it using slideUpPanel here also same issue, umanoScrollableView also not helpful. `<?xml version="1.0" encoding="utf-8"?> <com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:sothree="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/sliding_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="bottom" sothree:umanoDragView="@+id/dragView" sothree:umanoOverlay="true" sothree:umanoPanelHeight="68dp" sothree:umanoParallaxOffset="400dp" sothree:umanoScrollableView="@+id/viewPagerLogbook" sothree:umanoShadowHeight="4dp">

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

    <android.support.design.widget.AppBarLayout
        android:id="@+id/appBarLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:animateLayoutChanges="true"
        android:theme="@style/AppTheme.AppBarOverlay">

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="?attr/colorPrimary"
            app:popupTheme="@style/AppTheme.PopupOverlay"/>

    </android.support.design.widget.AppBarLayout>

    <fragment xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:map="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/mapLogbookTimeline"
        android:name="com.google.android.gms.maps.SupportMapFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_collapseMode="parallax" />

</FrameLayout>

<LinearLayout
    android:id="@+id/dragView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#ffffff"
    android:clickable="true"
    android:focusable="false"
    android:orientation="vertical">

    <android.support.v4.view.ViewPager
        android:id="@+id/viewPagerLogbook"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:background="@color/white" />

</LinearLayout>

</com.sothree.slidinguppanel.SlidingUpPanelLayout> `

nitintechjini commented 6 years ago

@srigiri92 Did you resolve this issue. I am facing the same issue. Please help me if you have resolved this.

NamNguyenHoang commented 6 years ago

when slideOffset < 9.0 and slideOffset > 0 SlingdingPanel can't dragging. I must "COLLAPSED" to dragging

tskiller1 commented 5 years ago

i have same issue. Did you resolve this issue? please help me