{"action":"created","issue":{"url":"https://api.github.com/repos/googlesamples/android-topeka/issues/8","labels_url":"https://api.github.com/repos/googlesamples/android-topeka/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/android-topeka/issues/8/comments","events_url":"https://api.github.com/repos/googlesamples/android-topeka/issues/8/events","html_url":"https://github.com/googlesamples/android-topeka/issues/8","id":89016266,"number":8,"title":"QuizActivity transition is not smooth","user":{"login":"iPaulPro","id":354227,"avatar_url":"https://avatars.githubusercontent.com/u/354227?v=3","gravatar_id":"","url":"https://api.github.com/users/iPaulPro","html_url":"https://github.com/iPaulPro","followers_url":"https://api.github.com/users/iPaulPro/followers","following_url":"https://api.github.com/users/iPaulPro/following{/other_user}","gists_url":"https://api.github.com/users/iPaulPro/gists{/gist_id}","starred_url":"https://api.github.com/users/iPaulPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iPaulPro/subscriptions","organizations_url":"https://api.github.com/users/iPaulPro/orgs","repos_url":"https://api.github.com/users/iPaulPro/repos","events_url":"https://api.github.com/users/iPaulPro/events{/privacy}","received_events_url":"https://api.github.com/users/iPaulPro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/googlesamples/android-topeka/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-17T13:26:52Z","updated_at":"2015-06-26T18:17:06Z","closed_at":null,"body":"Hoping to get some direction on how to fix issues like this. I often see this type of flickering and misaligned animations when using ActivityOptions to pass views.\r\n\r\n![Imgur](http://i.imgur.com/iq9DGG5.gif)\r\n\r\n\r\nYou can add this to `QuizActivity.onCreate()`, but it only stops the status bar/nav bar flickering (and not the misaligned views). It's also a nasty little block of code that shouldn't be necessary everywhere, and I'm hoping there's a better way.\r\n\r\n    postponeEnterTransition();\r\n\r\n    final View decor = getWindow().getDecorView();\r\n    decor.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {\r\n        @Override\r\n        public boolean onPreDraw() {\r\n            decor.getViewTreeObserver().removeOnPreDrawListener(this);\r\n            startPostponedEnterTransition();\r\n            return true;\r\n        }\r\n    });"},"comment":{"url":"https://api.github.com/repos/googlesamples/android-topeka/issues/comments/115822630","html_url":"https://github.com/googlesamples/android-topeka/issues/8#issuecomment-115822630","issue_url":"https://api.github.com/repos/googlesamples/android-topeka/issues/8","id":115822630,"user":{"login":"iPaulPro","id":354227,"avatar_url":"https://avatars.githubusercontent.com/u/354227?v=3","gravatar_id":"","url":"https://api.github.com/users/iPaulPro","html_url":"https://github.com/iPaulPro","followers_url":"https://api.github.com/users/iPaulPro/followers","following_url":"https://api.github.com/users/iPaulPro/following{/other_user}","gists_url":"https://api.github.com/users/iPaulPro/gists{/gist_id}","starred_url":"https://api.github.com/users/iPaulPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iPaulPro/subscriptions","organizations_url":"https://api.github.com/users/iPaulPro/orgs","repos_url":"https://api.github.com/users/iPaulPro/repos","events_url":"https://api.github.com/users/iPaulPro/events{/privacy}","received_events_url":"https://api.github.com/users/iPaulPro/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T18:17:06Z","updated_at":"2015-06-26T18:17:06Z","body":"Thanks Ben, it's definitely better when certain items are selected, but it's still not perfect. \r\n\r\n![topeka-transition-slower](http://i.imgur.com/vWFZsmz.gif)\r\n\r\nSorry to be a nag. Feel free to close this if it's out of the scope of this sample."}}