Android 回收视图';s滚动到底部不起作用
我创建的应用程序如下所示 第一个回收视图(水平视图)工作正常。 然而,当我滚动第二个RecyclerView(垂直视图)时,它不能正常工作。我无法将视图滚动到底部 这是我的xml代码Android 回收视图';s滚动到底部不起作用,android,xml,layout,scroll,android-recyclerview,Android,Xml,Layout,Scroll,Android Recyclerview,我创建的应用程序如下所示 第一个回收视图(水平视图)工作正常。 然而,当我滚动第二个RecyclerView(垂直视图)时,它不能正常工作。我无法将视图滚动到底部 这是我的xml代码 <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.ulimbridge.firechatting.views.ChatFragment">
<TextView
android:id="@+id/tv_approachingUsers"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="다가온 인연"
android:textSize="15sp"
android:textStyle="bold"
android:fontFamily="@font/nanum_square_r"
android:layout_marginLeft="10dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
/>
<android.support.v7.widget.RecyclerView
android:id="@+id/ApproachingRecyclerView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.15"
app:layout_constraintTop_toBottomOf="@id/tv_approachingUsers"
app:layout_constraintStart_toStartOf="parent"
/>
<TextView
android:id="@+id/view_chatMessage"
android:layout_marginTop="10dp"
android:layout_gravity="center_horizontal"
android:gravity="center_vertical"
android:layout_width="match_parent"
android:layout_height="35dp"
android:background="#72808A"
android:text="메시지"
android:textStyle="bold"
android:paddingLeft="10dp"
android:textColor="@color/white"
android:fontFamily="@font/nanum_square_r"
android:textSize="15sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/ApproachingRecyclerView" />
<android.support.v7.widget.RecyclerView
android:id="@+id/chatListRecyclerView"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintTop_toBottomOf="@+id/view_chatMessage"
app:layout_constraintBottom_toBottomOf="parent"/>
我使用了scrollview或nestedscroll视图,但不起作用。
如何修复它?当垂直循环视图滚动时,是否要隐藏水平循环视图?只需列出Instagram应用程序水平回收视图(用户故事)和垂直回收视图(用户帖子)。不,我不想要。首先,我想将垂直循环视图滚动到底部。我试图删除水平循环视图,但没有成功。所以,这并不取决于是否存在另一个recyclerview。请编写所有xml文件代码,您编写的xml代码不完整。我明白了。我添加了“paddingBottom”,然后,我可以向下滚动到底部。