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

[MaterialContainerTransform] View to Activity transition uses incorrect activity position if app is launched in multiwindow mode and placed at the bottom of split screen

Open
#1,474 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

**Description:** View to Activity transition uses incorrect start and end activity position. On enter transition new activity comes from the top of the app window and goes there on exit. Works only if app placed at the bottom of the screen.

**Expected behavior:** Activity transition should work the same in multiwindow mode as in fullscreen.

**Source code:** Reproduced in catalog app.

**Android API version:** Checked on API 26 and 29

**Material Library version:** Tested on 1.2.0-alpha06 and 1.3.0-alpha01

**Device:** Emulators and real devices.

Video from emulator running catalog app. You can see both cases with activity animation works incorrectly while fragment one is good:
https://drive.google.com/file/d/1BIilNsiE4qvF6CGC9dRoI27XtOkAbTru/view?usp=sharing

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

Reproduce the transition in the catalog app with the activity placed at the bottom of a split-screen window, using the API versions and library versions listed. Compare the activity transition with the working fragment transition and trace how MaterialContainerTransform determines activity positions. Done means the activity animation matches fullscreen behavior in multiwindow mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
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.