Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
####################################################
Please provide all of the following information, otherwise we may not be able to route your bug report.
####################################################
This is a pretty convoluted setup for a bug I encountered when developing a reader app.
I have an activity that uses ConstraintLayout which hosts a responsive view (that uses constrained_widthPercent) alongside a ViewPager, that hosts two fragments.
For the purpose of this demonstration, the two fragments are identical.
The fragment contains a NestedScrollView with some content and an ExtendedFloatingActionButton.
I added a ScrollListener on the NestedScrollView to extend the FAB when scrolling upwards and to shrink it when scrolling downwards. However, with this particular setup, the FAB animations mess with the NestedScrollView's scrolling, making the scrolling unresponsive for the whole animation.
Removing the constrained_widthPercent attribute from the view in the main layout and giving it a fixed size solves the problem (the problem also disappears if the ViewPager's size is fixed instead of matching constraints); without the attributes to make the view responsive, I get the intended behaviour.
Compile and run the attached project and try to scroll the NestedScrollView. The scrolling becomes unresponsive as soon as the FAB animation kicks in.
Bug demonstration.mp4: notice how the scrolling "jumps around" and never gets to the bottom, even going up sometimes
Intended behaviour.mp4: this is the intended behaviour, achieved by removing layout_constrained_widthPercent and settings layout_width and layout_height to fixed values.
Github repository of the minimal reproducible example:
Build: AI-241.15989.150.2411.11948838, 202406102054
AS: Koala | 2024.1.1
AI-241.15989.150.2411.11948838, JRE 17.0.10+0--11609105x64 JetBrains s.r.o., OS Windows 11(amd64) v10.0 , screens 2400.0x1350.0
Android Gradle Plugin: 8.5.0
Gradle: 8.7
Gradle JDK: JetBrains Runtime 17.0.10
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```