Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug fix] Fix bug case flickering on Oreo #35

Open
lfkdsk opened this issue Feb 9, 2018 · 2 comments
Open

[Bug fix] Fix bug case flickering on Oreo #35

lfkdsk opened this issue Feb 9, 2018 · 2 comments

Comments

@lfkdsk
Copy link

lfkdsk commented Feb 9, 2018

Google has confirmed it's a bug in Android 8.0, presumably fixed in 8.1. So the "empty animation" fix is for years, until minSdkVersion == 27.

  1. create empty anim xml under /anim folder:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">

</set>
  1. replace 0 to animation_activity_none:
activity.overridePendingTransition(R.anim.animation_activity_none, R.anim.animation_activity_none);

Bug fix!

@ToLengSon
Copy link

你好,bug应该不仅仅在8.0的系统上吧,我这边按照你的方法还是会出现滑动返回RecycleView上移的问题

@lfkdsk
Copy link
Author

lfkdsk commented Feb 10, 2018

@cyW0923 #14 #19 #29 three issues is about swipe back cause flickering. RecycleView move up may be related to cache the previous view of the activity? Like some issue's ToolBar moved up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants