This repository was archived by the owner on Dec 27, 2024. It is now read-only.
Description
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 >