please I need help with transitions. in my activity_main2.xml
I have two views one is a ImageView
and another one FloatingActionButton
what I want is that when I enter activity 2 from my activity 1 I do it with animation but separated osea the ImageView
that enters with start
and the FloatingActionButton
that enters with Top so separately I have this trasition
in my res
and even then I move all together.
<?xml version="1.0" encoding="utf-8"?>
<transitionSet xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:transitionOrdering="together">
<slide android:slideEdge="start">
<targets>
<target android:targetId="@id/imagenPortada" />
</targets>
</slide>
<slide android:slideEdge="top">
<targets>
<target android:targetId="@id/fab" />
</targets>
</slide>
</transitionSet>
And this is my style where I define and activate my transitions
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">#E21E63</item>
<item name="colorPrimaryDark">#C2145B</item>
<item name="colorAccent">#FFFFFF</item>
<item name="android:windowContentTransitions">true</item>
<item name="android:windowEnterTransition">@transition/transition</item>
<item name="android:windowExitTransition">@transition/etransition</item>
</style>
It's more or less what I want to achieve but in this case only with the floatingButton and the portda