android-transitions

Failed to retrieve removeGhost method

不羁岁月 提交于 2021-02-07 12:52:25
问题 I'm putting in place the Android Navigation Component in my app. Some transitions work fine, but for this one I have an error. The transition view, from fragment A, stay on the new fragment (B) and hide some elements. Moreover, when I scroll in the fragment, the view don't scroll with it. This is the error I get: W/t.qoqa.ui.debu: Accessing hidden method Landroid/view/GhostView;->removeGhost(Landroid/view/View;)V (greylist-max-p, reflection, denied) I/GhostViewApi21: Failed to retrieve

Z-Index conflict when animating fragment transition using the Android Navigation component

允我心安 提交于 2021-02-07 03:44:27
问题 I'm trying to use Android Navigation instead of fragment transaction. There is one problem however which is starting to be cumbersome. Upon using a slide-in animation for the Enter Animation the new fragment goes beneath the current fragment. Be sure to check the following video to see the bug in action. https://youtu.be/gFnXiEyiypM The bug seems not to be from the Navigation component though the hacky solutions (this and this) which have been introduced for this specific problem doesn't seem

Z-Index conflict when animating fragment transition using the Android Navigation component

二次信任 提交于 2021-02-07 03:42:38
问题 I'm trying to use Android Navigation instead of fragment transaction. There is one problem however which is starting to be cumbersome. Upon using a slide-in animation for the Enter Animation the new fragment goes beneath the current fragment. Be sure to check the following video to see the bug in action. https://youtu.be/gFnXiEyiypM The bug seems not to be from the Navigation component though the hacky solutions (this and this) which have been introduced for this specific problem doesn't seem

Transition Manager - Sliding a view out is not working as wanted

左心房为你撑大大i 提交于 2021-01-29 10:41:40
问题 I'm trying to slide this view in and out using Transition + Transition manager, however when hitting the hide button to make the view GONE it doesn't have the sliding animation. However, the show button does have the sliding in animation to make the view VISIBLE again. @OnClick(R.id.testBtn) public void onTestBtnClick(){ //hide Transition transition = new Slide(Gravity.START); transition.setDuration(600); TransitionManager.beginDelayedTransition(mParentLayout, transition); mLayout

Shared Element Transition when reopening existing Activity in stack Reorder To Front

天大地大妈咪最大 提交于 2021-01-27 04:29:08
问题 I have an Activity A from there I open Activity B, and pass the shared element to it. It animates the transition fine, but when I go back to Activity A and then go to Activity B again which is still in the stack using intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); The shared element transition is not run. With regular animations you call overridePendingTransition() in onNewIntent for the animations to run. https://stackoverflow.com/a/8327091 I tried calling

Android Navigation Component with Transition from Drawerlayout

痴心易碎 提交于 2020-05-27 06:17:51
问题 Is it possible to change the transition effect from opening a fragment from a drawerlayout with the android navigation component. There is nothing in the android docs. 回答1: Sarah! Yes, it is possible. You can add your custom listener to handle navigation item selection and add animation there. I had to add one myself, for other purposes, but it definitely fits as a solution for your task. How to: Add layout with drawer. Example: <?xml version="1.0" encoding="utf-8"?> <androidx.drawerlayout

Android Navigation Component with Transition from Drawerlayout

杀马特。学长 韩版系。学妹 提交于 2020-05-27 06:17:05
问题 Is it possible to change the transition effect from opening a fragment from a drawerlayout with the android navigation component. There is nothing in the android docs. 回答1: Sarah! Yes, it is possible. You can add your custom listener to handle navigation item selection and add animation there. I had to add one myself, for other purposes, but it definitely fits as a solution for your task. How to: Add layout with drawer. Example: <?xml version="1.0" encoding="utf-8"?> <androidx.drawerlayout

UI components not visible in TransitionManager animations

让人想犯罪 __ 提交于 2020-05-17 06:26:27
问题 This is an issue in a Java Android application with a very simple custom draggable drawer in MainActivity. This is how it behaves when it runs on Android 10 (API level 29) emulator, and it is the expected behavior. But the problem is, when it runs on Android L (API level 21) emulator, it behaves unexpectedly as follows : During the animation, UI components are not visible. But when app goes to background and comes back, they become visible. Implementation details of app : To detect fling /

Shared element transition in Jetpack Navigation from RecyclerView to Detail Fragment

对着背影说爱祢 提交于 2020-01-04 05:09:31
问题 I'm trying to make a transition with simple animation of shared element between Fragments. In the first fragment I have elements in RecyclerView, in second - exactly the same element (defined in separate xml layout, in the list elements are also of this type) on top and details in the rest of the view. I'm giving various transitionNames for all elements in bindViewHolder and in onCreateView of target fragment I'm reading them and set them to element I want make transition. Anyway animation is