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

[MaterialSwitch] Switch animation

Open
#3,201 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The current switching animation doesn't match M3 guidelines (switch thumb should stretch when moving, animation should be kinda elastic and so on):

https://user-images.githubusercontent.com/82187521/215977644-e82a4ade-ed17-4885-b850-b03f0f1a1365.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 locating the MaterialSwitch animation implementation and compare its current behavior with the linked video and M3 guidelines. Done means the thumb stretches during travel and the motion has the requested elastic character.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
design, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.