Android 在平板电脑横向模式下,Recyclerview未向左滚动
陷入这个问题有一段时间了。我有一个带有水平布局管理器的框架内的recyclerview。在手机(portait模式)中,左右滚动可以正常工作,但在平板电脑(横向模式)中,左右滚动只能向右滚动。这里是我的布局顺便说一句:Android 在平板电脑横向模式下,Recyclerview未向左滚动,android,android-recyclerview,tablet,landscape,Android,Android Recyclerview,Tablet,Landscape,陷入这个问题有一段时间了。我有一个带有水平布局管理器的框架内的recyclerview。在手机(portait模式)中,左右滚动可以正常工作,但在平板电脑(横向模式)中,左右滚动只能向右滚动。这里是我的布局顺便说一句: <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app
<androidx.constraintlayout.widget.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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
tools:context=".fragments.FragmentSubscriptionPlanList">
<TextView
android:id="@+id/tvTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_10sdp"
android:layout_marginLeft="@dimen/_10sdp"
android:layout_marginRight="@dimen/_10sdp"
android:gravity="left"
android:text="@string/change_plan"
android:textSize="@dimen/_8ssp"
app:layout_constraintTop_toTopOf="parent"
tools:layout_editor_absoluteX="40dp" />
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@id/rvSubscription"
app:layout_constraintLeft_toLeftOf="@id/rvSubscription"
app:layout_constraintRight_toRightOf="@id/rvSubscription"
app:layout_constraintBottom_toBottomOf="@id/rvSubscription"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvSubscription"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="@dimen/_5sdp"
android:paddingLeft="@dimen/_10sdp"
android:paddingRight="@dimen/_10sdp"
app:layout_constraintTop_toBottomOf="@id/tvTitle"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
既然SO还不允许我在这里嵌入图像:你能嵌入一个屏幕截图来显示结果吗?
@Someone\u who\u like\u因为我已经为布局的屏幕截图添加了一个链接。谢谢