Einstürzende Symbolleiste Layout mit Viewpager innen NestedScrollView

Ich bin mit Einstürzenden Symbolleiste Layout mit NestedScrollView und Viewpager innen verschachtelte Scrollview.

Ich bin mit 3 Laschen und 3 Fragmente für diese tabs. Diese Fragmente sind mit RecyclerView zu setzen Daten.

Nun mit der nestedScrollView und viewpager, wenn ich scrollen die RecyclerView Inhalte, die einstürzenden Effekt funktioniert nicht mit diesem.

Ich NestedScrollView auch, wie ich bin mit ein paar Infos, die ich brauche, um zu zeigen, über Tabs.

Hier ist mein code:

<android.support.design.widget.AppBarLayout
    android:id="@+id/appbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
    android:fitsSystemWindows="true">

    <android.support.design.widget.CollapsingToolbarLayout
    android:id="@+id/collapsing_toolbar"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_scrollFlags="scroll|exitUntilCollapsed"
    android:fitsSystemWindows="true"
    app:contentScrim="?attr/colorPrimary"
    app:expandedTitleMarginEnd="64dp"
    app:expandedTitleMarginStart="48dp"
    app:expandedTitleTextAppearance="@style/TransparentText">

    <FrameLayout
        android:id="@+id/carouselLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_scrollFlags="scroll|exitUntilCollapsed"
        android:fitsSystemWindows="true"
        app:layout_collapseMode="parallax">

        <ImageView
            android:id="@+id/coverImage"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:src="@drawable/example"
            android:scaleType="centerCrop"/>

        <LinearLayout
            android:layout_width="match_parent"
            android:gravity="bottom"
            android:orientation="vertical"
            android:layout_gravity="bottom"
            android:padding="@dimen/profile_image_margin"
            android:background="@drawable/gradient_bg"
            app:layout_behavior="@string/appbar_scrolling_view_behavior"
            android:layout_height="wrap_content">

            <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/profile_image_margin"
            android:textSize="@dimen/text_size_xlarge"
            android:textStyle="bold"
            android:textColor="@color/white"
            android:text="Title"
            android:id="@+id/content_title"/>

        </LinearLayout>

    </FrameLayout>

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            app:theme="@style/ActionBarThemeOverlay"
            app:popupTheme="@style/ActionBarPopupThemeOverlay"
            app:layout_scrollFlags="scroll|enterAlways"
            android:background="@drawable/gradient_bg" />

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

<android.support.v4.widget.NestedScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="fill"
    android:isScrollContainer="true"
    app:layout_behavior="@string/appbar_scrolling_view_behavior">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="sdjsfksdfsd"
            android:textColor="@color/red"/>

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="csdffsfsdfsdfsdf"
            android:textColor="@color/red"/>

        <android.support.design.widget.TabLayout
            android:id="@+id/slidingTabs"
            android:layout_width="match_parent"
            app:tabMode="scrollable"
            app:tabGravity="fill"
            android:layout_height="wrap_content"/>

        <android.support.v4.view.ViewPager
            android:id="@+id/pager"
            android:layout_width="match_parent"
            app:layout_behavior="@string/appbar_scrolling_view_behavior"
            android:layout_height="300dp">

        </android.support.v4.view.ViewPager>
        </LinearLayout>
    </android.support.v4.widget.NestedScrollView>

Bitte helfen Sie mir, wenn Sie eine Idee haben, wie das umzusetzen, Recyclerview innen NestedScrollview in android, so dass ich kann diese arbeiten.

  • Haben Sie einen Blick auf dieses stackoverflow.com/questions/30580954/...
  • können Sie bitte erläutern oder stattdessen laden Sie eine Momentaufnahme. So würden wir helfen, Sie mit alternativen oder richtige Lösung.
  • bitte dieser
Schreibe einen Kommentar