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

[MaterialSwitch] Thumb stretching

Open
#3,202 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Backlogged bug Widget: Switch
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

If you abruptly switch the state of `MaterialSwitch` with a thumb, it will stretch, but only at the ends of the track. I'm sure it shouldn't be like this:

https://user-images.githubusercontent.com/82187521/215922723-f26733ed-6353-429f-bd7e-ac4cea7557bc.mp4

**Material Library version:** 1.8.0

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 reproducing the thumb stretching in MaterialSwitch from the linked video, using the reported Material Library version 1.8.0 and an abrupt state change. Then locate the MaterialSwitch implementation and any related tests; done means the thumb no longer stretches at either end of the track during that transition.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.