Avoid showing vertical scroll bar on stage error listview #1097
No reviewers
Labels
No labels
android: closed alpha
android: open beta
app-parity
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
creator
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
product review
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-android#1097
Loading…
Reference in a new issue
No description provided.
Delete branch "remove_stages_scrollbar"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
What is the current behavior?
On some cases it could happen that the list which shows startup stage errors is also showing a scroll bar, which also makes not all stages be seen at the same time
What is the new behavior?
Listview is measured and resized to a height which would allow all stages statuses to be seen at the same time
Other information
Testing on the emulators didn't show the current behavior. However, testing on my physical device did show it. I suggest testing this PR on a physical device.
ListView layout_height on app_bar_main.xml was changed to "0dp" as Android Studio was recommending that change.
Hey, thanks for this. Wouldn't it just be easier to set
android:scrollbars="none"
on theListView
in the layout xml? Is there a particular reason for taking this approach?Edit: I actually, I see the reason now. I wasn't getting the behaviour with some being cut off when I tested, so maybe it also depends on device screen resolution.
Looks good to me.
Exactly. Testing on the emulator with any Pixel AVD didn't show the problem at all. It was on my physical Redmi device that list only showed a few items. Setting
scrollbars='none'
only hide the scrollbars, letting the list still not at its full height. That attribute is now not needed, but I don't see it as doing anything wrong neither.