folding-cell-android icon indicating copy to clipboard operation
folding-cell-android copied to clipboard

Animation flickers on Android 10

Open NewAndOldAdrian opened this issue 5 years ago • 19 comments

Hi,

I have downloaded the the remotion app from play store and I run it on several devices with Android 10 and I get the flicker like in the following video. https://files.fm/u/dse7fwse

Also with my own implementation of this library the flicker reproduces on Android 10 devices. Please keep in mind that is not a device issue because I tried the app on several devices with Android 10 and it always reproduced.

Any idea on how to fix this? Thanks

NewAndOldAdrian avatar Feb 12 '20 13:02 NewAndOldAdrian

Hello, @NewAndOldAdrian. Tested sample app from this repo on Android 10 API 29 device and there is no such bug. https://files.fm/f/bq75uq7z. What are the devices that you've used for testing?

golovin47 avatar Feb 12 '20 13:02 golovin47

Hi,

I tried with two devices having Google Pixel and one Samsung Note 9. I will try the sample from this repo in a few minutes and I will reply to this thread

NewAndOldAdrian avatar Feb 12 '20 13:02 NewAndOldAdrian

I tried the latest version of the sample, with folding-cell-listview-example, the flicker animation still happens on Android 10 when you try to expand the second item in the list https://files.fm/u/t3b2dmuv

NewAndOldAdrian avatar Feb 12 '20 14:02 NewAndOldAdrian

@NewAndOldAdrian Couldn't reproduce the bug on any of devices with various OS versions. As you can see on the video it works fine. If you can easily reproduce the bug you may try to resolve it as this is an open source project. If you want to of course.

golovin47 avatar Feb 12 '20 14:02 golovin47

@golovin47 Animations are not really my thing. The glitch is very easily reproducible, appears either at the beginning of the animation, or at the end...

Any idea what could be since it appears only on ANDROID 10 ?

Thanks anyway

NewAndOldAdrian avatar Feb 12 '20 14:02 NewAndOldAdrian

@golovin47 I don't want to bother you, but I've taken a closer look to your video and I've seen that you expand the first item in the list and then the second. The issue reproduces on ANDROID 10 if you leave the first item unexpanded and you expand the second one.

NewAndOldAdrian avatar Feb 13 '20 07:02 NewAndOldAdrian

@NewAndOldAdrian https://files.fm/f/fm5u4swk

golovin47 avatar Feb 13 '20 09:02 golovin47

@golovin47 what device do you use?

NewAndOldAdrian avatar Feb 13 '20 10:02 NewAndOldAdrian

@NewAndOldAdrian Pixel3.

golovin47 avatar Feb 13 '20 10:02 golovin47

@golovin47 I made some debug/experimenting and there seems to be an issue with the backView taking the full width....but I can't tell exactly what

NewAndOldAdrian avatar Feb 13 '20 13:02 NewAndOldAdrian

@golovin47 Hello, I also encountered a similar problem, and I found that the initial height of the foldingLayout is. The height of its LayoutParams is wrap_content, and then at startFoldAnimation, all cells are setVisibility (VISIBLE), and the initial height of foldingLayout is the full height of contentView, causing a frame to flicker. I tried to fix the problem and it seems to be fixed.

wwwdotfa avatar Feb 22 '20 16:02 wwwdotfa

Hello, @wwwdotfa. Thanks for your involvement, but unfortunately this issue is still reproducible even with your proposed fix.

golovin47 avatar Feb 24 '20 13:02 golovin47

Solution: In FoldingCellView remove the following lines: this.setClipToPadding(false); this.setClipChildren(false);

and its going to work. Cheers:)

NewAndOldAdrian avatar Feb 25 '20 14:02 NewAndOldAdrian

Hello, @wwwdotfa. Thanks for your involvement, but unfortunately this issue is still reproducible even with your proposed fix.

Then I may have another problem. I recorded the video and intercepted a flashing frame. This is the problem I tried to solve.

微信图片_20200227132113

wwwdotfa avatar Feb 27 '20 05:02 wwwdotfa

Hello, @wwwdotfa. Thanks for your involvement, but unfortunately this issue is still reproducible even with your proposed fix.

Then I may have another problem. I recorded the video and intercepted a flashing frame. This is the problem I tried to solve.

微信图片_20200227132113

The blue area is after folding, and the green area is before folding. You can see that one blue frame has the same height as green‘s full height.

wwwdotfa avatar Feb 27 '20 05:02 wwwdotfa

I am having the same problem @NewAndOldAdrian 's solution is not working in this case. and i am using OnePlus 6T android 10. UPDATE: i had not applied camera height and animation duration to cell and it worked fine. But in some cases it still causing problems. Screenshot_20200504-154333 Screenshot_20200504-154339

jd1017 avatar May 04 '20 10:05 jd1017

same issue here android 10, samsung galaxy s10

alikamts avatar May 28 '20 01:05 alikamts

Hi, I'm having the same issue where the backside color flickers and blocks the rest of the screen during animation on android 10 on a Samsung galaxy A50. very frustrating.

finlay888 avatar Jun 17 '20 20:06 finlay888

Samsung 9s android 10 ,There are also such problems

In FoldingCellView remove the following lines: this.setClipToPadding(false); this.setClipChildren(false);

Just get rid of it

SpakeBrony avatar Sep 22 '20 04:09 SpakeBrony