From a6470c039ee9b9c7c9d43ae12e1e229330359661 Mon Sep 17 00:00:00 2001 From: preritjn Date: Fri, 10 Jun 2022 16:33:39 +0530 Subject: [PATCH 1/4] Added Activity Transition Animations --- .../src/main/java/com/example/whooby/MainActivity.kt | 4 ++++ Whooby/app/src/main/java/com/example/whooby/opening.kt | 8 +++----- .../src/main/java/com/example/whooby/splashscreen.kt | 10 ++++++---- Whooby/app/src/main/java/com/example/whooby/whooby.kt | 7 ++++--- Whooby/app/src/main/res/anim/top_bottom1.xml | 8 -------- Whooby/app/src/main/res/anim/top_bottom2.xml | 9 --------- 6 files changed, 17 insertions(+), 29 deletions(-) delete mode 100644 Whooby/app/src/main/res/anim/top_bottom1.xml delete mode 100644 Whooby/app/src/main/res/anim/top_bottom2.xml diff --git a/Whooby/app/src/main/java/com/example/whooby/MainActivity.kt b/Whooby/app/src/main/java/com/example/whooby/MainActivity.kt index df34c2b9..b0b6506f 100644 --- a/Whooby/app/src/main/java/com/example/whooby/MainActivity.kt +++ b/Whooby/app/src/main/java/com/example/whooby/MainActivity.kt @@ -155,6 +155,10 @@ class MainActivity : AppCompatActivity(), TextToSpeech.OnInitListener,AdapterVie override fun onNothingSelected(p0: AdapterView<*>?) { TODO("Not yet implemented") } + override fun onBackPressed() { + super.onBackPressed() + overridePendingTransition(R.anim.right_left1,R.anim.right_left2) + } } \ No newline at end of file diff --git a/Whooby/app/src/main/java/com/example/whooby/opening.kt b/Whooby/app/src/main/java/com/example/whooby/opening.kt index 9cc4d77b..baf81b53 100644 --- a/Whooby/app/src/main/java/com/example/whooby/opening.kt +++ b/Whooby/app/src/main/java/com/example/whooby/opening.kt @@ -135,14 +135,12 @@ class Opening : AppCompatActivity() { val whooby = findViewById