Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When scrolling occurs in a ConstrainLayout that contains both a flow and a PageView, scrolling occurs even though there is no change in text size. #859

Open
jwson-automation opened this issue Aug 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jwson-automation
Copy link

  • When scrolling occurs in a ConstrainLayout that contains both a flow and a PageView, scrolling occurs even though there is no change in text size.

  • We apologise for not being able to attach a video.

  • If anyone else is experiencing the same issue, please share and let us know if there is a workaround.

<androidx.constraintlayout.widget.ConstraintLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <TextView
      android:id="@+id/textview_one"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:textColor="#757575"
      android:textSize="13sp"
      app:isVisible="@{viewModel.isVisibleDate}"
      app:localDate="@{viewModel.date}"
      tools:text="2020年10月20日" />

    <LinearLayout
      android:id="@+id/linearlayout_one"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:gravity="center"
      android:orientation="horizontal">
      <TextView
        android:id="@+id/textview_two"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:text="@{viewModel.title}"
        android:textColor="#757575"
        android:textSize="13sp"
        tools:text="Placeholder" />
    </LinearLayout>

    <androidx.constraintlayout.helper.widget.Flow
      android:id="@+id/flow_one"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_marginHorizontal="16dp"
      android:layout_marginTop="29dp"
      android:orientation="horizontal"
      app:constraint_referenced_ids="textview_one,linearlayout_one"
      app:flow_horizontalGap="4dp"
      app:flow_horizontalStyle="packed"
      app:flow_wrapMode="chain"
      app:layout_constraintBottom_toBottomOf="@id/linearlayout_one"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent" />

    <androidx.viewpager2.widget.ViewPager2
      android:id="@+id/viewpager_one"
      android:layout_width="match_parent"
      android:layout_height="0dp"
      app:layout_behavior="androidx.coordinatorlayout.widget.ViewPager2" 
      app:layout_constraintTop_toBottomOf="@id/flow_one"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintEnd_toEndOf="parent" />

  </androidx.constraintlayout.widget.ConstraintLayout>
@jwson-automation jwson-automation added the bug Something isn't working label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant