Last active
August 15, 2017 09:38
-
-
Save vtthach/71a41270bb29bacd40d56e0bc852e041 to your computer and use it in GitHub Desktop.
Transition with share element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style name="AppTheme.Main" parent="Theme.AppCompat.Light.NoActionBar"> | |
<item name="android:statusBarColor">@android:color/holo_blue_light</item> | |
<item name="android:windowEnterTransition">@transition/details_window_enter_transition</item> | |
<item name="android:windowReturnTransition">@transition/details_window_return_transition</item> | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<fade xmlns:android="http://schemas.android.com/apk/res/android"> | |
<targets> | |
<target android:excludeId="@android:id/statusBarBackground"/> | |
<target android:excludeId="@android:id/navigationBarBackground"/> | |
</targets> | |
</fade> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<transitionSet xmlns:android="http://schemas.android.com/apk/res/android" | |
android:transitionOrdering="together" | |
android:duration="3500"> | |
<fade> | |
<targets> | |
<target android:excludeId="@android:id/statusBarBackground" /> | |
<target android:excludeId="@android:id/navigationBarBackground" /> | |
</targets> | |
</fade> | |
<slide android:slideEdge="top" > | |
<targets> | |
<target android:targetId="@id/details_header_container" /> | |
</targets> | |
</slide> | |
<slide android:slideEdge="bottom"> | |
<targets> | |
<target android:targetId="@id/details_text_container" /> | |
</targets> | |
</slide> | |
</transitionSet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment