material-components / material-components/material-components-android

[BottomSheet] Scroll Bar on BottomSheet

Open
#1,705 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: BottomSheet
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
The length of the scroll bar on the BottomSheet is not related to the height (state) of the BottomSheet.
(STATE_HALF_EXPANDED)
![Screenshot_20200914-094423](https://user-images.githubusercontent.com/71050561/93033012-58cf3a00-f66f-11ea-85cd-33dc23870989.png)
(STATE_EXPANDED)
![Screenshot_20200914-094430](https://user-images.githubusercontent.com/71050561/93033016-5a006700-f66f-11ea-922a-1a839866bade.png)

**Describe the solution you'd like**
When the bottom sheet is STATE_HALF_EXPANDED, the scroll bar on the bottom sheet should be short.
(STATE_HALF_EXPANDED)
![Screenshot_20200914-094607](https://user-images.githubusercontent.com/71050561/93033017-5a98fd80-f66f-11ea-8c0b-4d0c783d3bc2.png)

**Describe alternatives you've considered**
It is difficult to manually change the length of the scroll bar on the BottomSheet.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the BottomSheet implementation and reproducing the scrollbar behavior in STATE_HALF_EXPANDED and STATE_EXPANDED. Compare the scrollbar length with the sheet height in both states; done means the half-expanded state displays a shorter scrollbar without requiring manual changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.