0

무너지고 카드보기 휴지통보기 아래로 스크롤 할 때 내가 아래로 스크롤 할 때 사라와 나는 디자인 libary로 Xamarin.Android을 사용하고 내가</p> <p>을 스크롤 할 때 다시 열 때까지 툴바 아래에 카드를 넣고 축소 할 수 있습니다 방법

Screenshot of the view

:

<?xml version="1.0" encoding="utf-8"?> 
<android.support.design.widget.CoordinatorLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:id="@+id/coordinatorLayoutMainLayoutPublicationsLayout" 
    android:fitsSystemWindows="true"> 

    <android.support.design.widget.AppBarLayout 
     android:id="@+id/main.appbar" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:fitsSystemWindows="true"> 

    <android.support.design.widget.CollapsingToolbarLayout 
      android:id="@+id/collapsing_toolbar" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:fitsSystemWindows="true" 
      app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"> 

     <android.support.v7.widget.CardView 
      xmlns:card_view="http://schemas.android.com/apk/res-auto" 
      android:id="@+id/card_view" 
      android:layout_gravity="center" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      app:cardCornerRadius="4dp" 
      app:cardElevation="4dp" 
      app:cardUseCompatPadding="true"> 

     <Button 
     android:layout_width="match_parent" 
     android:layout_height="150dp" 
     android:text="BOBOBOBOBOBOB" 
     app:layout_scrollFlags="scroll|enterAlways"/> 

     </android.support.v7.widget.CardView> 

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

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

    <android.support.v4.widget.SwipeRefreshLayout 
    android:id="@+id/swipeContainerPublicationsLayout" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    app:layout_behavior="@string/appbar_scrolling_view_behavior"> 

    <android.support.v7.widget.RecyclerView 
     android:id="@+id/recyclerViewPublicationsLayout" 
     android:scrollbars="vertical" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" /> 

    </android.support.v4.widget.SwipeRefreshLayout> 

    <android.support.v7.widget.Toolbar 
     android:id="@+id/toolbarPublicationsLayout" 
     android:layout_width="match_parent" 
     android:layout_height="?attr/actionBarSize" 
     android:background="?attr/colorPrimary" /> 

    <android.support.design.widget.FloatingActionButton 
    android:id="@+id/fabPublicationsLayout" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_gravity="bottom|end" 
    android:src="@drawable/icon_add_fab" 
    android:layout_margin="15dp" /> 

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

출력보기는 다음과 같이이다 : 여기

내 AXML 코드

답변

-1

많은 시간을 내가 해결책을 발견 검색 후, NestedScrollView

<?xml version="1.0" encoding="utf-8"?> 

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     xmlns:app="http://schemas.android.com/apk/res-auto" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:orientation="vertical" 
    android:id="@+id/linearLayoutMainLayout"> 

    <android.support.v7.widget.Toolbar 
      android:id="@+id/toolbar" 
      android:layout_width="match_parent" 
      android:layout_height="?attr/actionBarSize" 
      android:background="?attr/colorPrimary" /> 




<android.support.design.widget.CoordinatorLayout 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:id="@+id/coordinatorLayoutMainLayout"> 



    <android.support.v4.widget.SwipeRefreshLayout 
     android:id="@+id/swipeContainer" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" > 

    <android.support.v4.widget.NestedScrollView 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    > 

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

     <android.support.v7.widget.CardView 
    android:id="@+id/card_view" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    app:cardCornerRadius="4dp" 
    app:cardElevation="4dp" 
    app:cardUseCompatPadding="true"> 


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

     <TextView 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceMedium" 
     android:textStyle="bold" 
     android:id="@+id/textView1" /> 
     <TextView 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:id="@+id/textView2" /> 
     <TextView 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:id="@+id/textView3" /> 
     <TextView 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:id="@+id/textView4" /> 
     <Button 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:id="@+id/button" /> 

    </LinearLayout> 

    </android.support.v7.widget.CardView> 

     <android.support.v7.widget.RecyclerView 
      android:id="@+id/recyclerView" 
      android:scrollbars="vertical" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:nestedScrollingEnabled="false"/> 

    </LinearLayout> 

</android.support.v4.widget.NestedScrollView> 


     </android.support.v4.widget.SwipeRefreshLayout> 

<android.support.design.widget.FloatingActionButton 
     android:id="@+id/fab" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
    android:layout_gravity="bottom|end" 
    android:src="@drawable/icon_add_fab" 
    android:layout_margin="15dp"/> 

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

</LinearLayout> 
내부의 recyclerview과 cardview을