Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I imitate SmoothViewPagerParallaxExitUntilCollapsedActivity interface, overall structure of this project is viewpager + fragemment structure, but when I RecyclerView exist head when sliding to the top To be placed at the top, now in your control will slide out, what reason be? #215

Open
jason12193 opened this issue Oct 17, 2017 · 0 comments

Comments

@jason12193
Copy link

I imitate SmoothViewPagerParallaxExitUntilCollapsedActivity interface, overall structure of this project is viewpager + fragemment structure, but when I RecyclerView exist head when sliding to the top To be placed at the top, now in your control will slide out, what reason be?

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">
    **<!--

Demand: this is the head, and as it slides up to the top you can't slide it out and now it's going to go out-->

    <LinearLayout
        android:orientation="vertical"
        android:id="@+id/head_Sliding_set_top"
        android:layout_width="match_parent"
        android:layout_height="50dp">

    </LinearLayout>**

    <android.support.v7.widget.RecyclerView
        android:id="@+id/recycler_view"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1" />
</LinearLayout>

<me.henrytao.smoothappbarlayout.widget.NestedScrollView
    android:id="@+id/nested_scroll_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:visibility="gone">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="16dp"
        android:visibility="visible">

        <include
            android:id="@+id/item_pager_header_spacing"
            layout="@layout/item_pager_header_spacing" />

        <include
            android:id="@+id/item_header_view_pager_parallax_spacing"
            layout="@layout/item_header_view_pager_parallax_spacing" />

        <TextView
            android:id="@+id/text"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:text="@string/text_long" />
    </LinearLayout>
</me.henrytao.smoothappbarlayout.widget.NestedScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant