2016-12-22 3 views
0
私はrecyclerviewをスクロールして、ネストされたスクロールやscrollviewを使用せずに他のオブジェクトをスクロールすることが可能であるかを知りたい

外のオブジェクトをスクロールrecyclerviewスクロールするには?どのようrecyclerview

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:orientation="vertical"> 
    <TextView 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_marginTop="50dp" 
    android:layout_gravity="center" 
    android:gravity="center" 
    android:text="Text or other oject will list here" 
    android:id="@+id/info"/> 
    <android.support.v7.widget.RecyclerView 
    android:id="@+id/business_recycle" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" /> 
</LinearLayout> 
+0

recyclerView.setNestedScrollingEnabled(false);を設定 –

答えて

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

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

     <TextView 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:layout_marginTop="50dp" 
      android:layout_gravity="center" 
      android:gravity="center" 
      android:text="Text or other oject will list here" 
      android:id="@+id/info"/> 

     <android.support.v7.widget.RecyclerView 
      android:id="@+id/business_recycle" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" /> 
    </LinearLayout> 
</android.support.v4.widget.NestedScrollView> 

注:スクロールビュー内のAndroidリストビュー:これをチェックし、プログラム

関連する問題