Devlight / Devlight/ShadowLayout

Shadow mispacement on rotation

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
634
Forks
145
PR merge metrics
No merged PRs in 30d

Description

I'm noticing a weird effect when the device is rotated:
![screenshot_1513062572](https://user-images.githubusercontent.com/5779978/33871914-40daa22a-df1d-11e7-951d-df0ec5a8b65d.png)
![screenshot_1513062577](https://user-images.githubusercontent.com/5779978/33871915-40f8edb6-df1d-11e7-845a-020a96753678.png)

Looks like the shadow is calculated only once when the view is inflated and then reapplied size and orientation changes.

`

...



`

The initial orientation doesn't matter - it's OK until you rotate. Rotating back and forth produces the same screens.

P.S. Great library, btw! :)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the rotation problem with the provided ShadowLayout XML and compare the shadow before and after rotating the device. Inspect how ShadowLayout handles size and orientation changes; the issue is done when the shadow remains correctly positioned after rotating back and forth.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.