Created
November 18, 2016 14:49
-
-
Save omaraboumrad/294dff5bb8e455f6066e55dc11b285f7 to your computer and use it in GitHub Desktop.
android declarative activity transition
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"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
xmlns:transition="https://aboumrad.info/transition" | |
android:id="@+id/activity_main" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
android:orientation="vertical" | |
tools:context="info.aboumrad.transitiontest.MainActivity"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Hello World!" /> | |
<info.aboumrad.transitiontest.TransitionButton | |
android:text="Load Foo" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
transition:to="FooActivity"/> | |
<info.aboumrad.transitiontest.TransitionButton | |
android:text="Load Bar" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
transition:to="BarActivity"/> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment