diff --git a/app/src/main/java/in/dragons/galaxy/InstalledAppsActivity.java b/app/src/main/java/in/dragons/galaxy/InstalledAppsActivity.java index 6fb5d42cb..749b04c6b 100644 --- a/app/src/main/java/in/dragons/galaxy/InstalledAppsActivity.java +++ b/app/src/main/java/in/dragons/galaxy/InstalledAppsActivity.java @@ -1,5 +1,6 @@ package in.dragons.galaxy; +import android.app.ActivityOptions; import android.content.Intent; import android.os.Bundle; import android.support.v7.widget.CardView; @@ -21,6 +22,7 @@ public class InstalledAppsActivity extends AppListActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + ActivityOptions.makeSceneTransitionAnimation(this).toBundle(); setTitle(R.string.activity_title_updates_and_other_apps); Button button =(Button) findViewById(R.id.main_button); TextView textView = (TextView) findViewById(R.id.main_button_txt); @@ -36,6 +38,7 @@ public class InstalledAppsActivity extends AppListActivity { @Override public void onClick(View view) { startActivity(new Intent(getApplicationContext(), UpdatableAppsActivity.class)); + } }); } diff --git a/app/src/main/res/anim/slide_in_left.xml b/app/src/main/res/anim/slide_in_left.xml new file mode 100644 index 000000000..6d2b5cb9d --- /dev/null +++ b/app/src/main/res/anim/slide_in_left.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/anim/slide_in_right.xml b/app/src/main/res/anim/slide_in_right.xml new file mode 100644 index 000000000..6fc2dfeab --- /dev/null +++ b/app/src/main/res/anim/slide_in_right.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/anim/slide_out_left.xml b/app/src/main/res/anim/slide_out_left.xml new file mode 100644 index 000000000..23eb4da41 --- /dev/null +++ b/app/src/main/res/anim/slide_out_left.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/anim/slide_out_right.xml b/app/src/main/res/anim/slide_out_right.xml new file mode 100644 index 000000000..236293f5d --- /dev/null +++ b/app/src/main/res/anim/slide_out_right.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/integers.xml b/app/src/main/res/values/integers.xml new file mode 100644 index 000000000..c1df61d83 --- /dev/null +++ b/app/src/main/res/values/integers.xml @@ -0,0 +1,4 @@ + + + 250 + \ No newline at end of file diff --git a/app/src/main/res/values/style.xml b/app/src/main/res/values/style.xml index fde8161b2..dd03b765c 100644 --- a/app/src/main/res/values/style.xml +++ b/app/src/main/res/values/style.xml @@ -8,6 +8,7 @@ @color/colorText @color/colorTextPrimary @color/colorTextSecondary + @style/CustomActivityAnimation \ No newline at end of file