From 32263e8f436816678b55793338c0c9d7c881b49b Mon Sep 17 00:00:00 2001 From: Matan Bar Yosef Date: Sun, 3 Jul 2016 13:18:23 +0300 Subject: [PATCH] - SplashScreen added --- app/src/main/AndroidManifest.xml | 14 +++++++--- .../thesocialnotework/SplashActivity.java | 26 +++++++++++++++++++ app/src/main/res/layout/activity_splash.xml | 18 +++++++++++++ 3 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/SplashActivity.java create mode 100644 app/src/main/res/layout/activity_splash.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c3c5da3..4d29309 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,10 +2,9 @@ - - + @@ -19,7 +18,7 @@ android:supportsRtl="true" android:theme="@style/AppTheme"> @@ -27,7 +26,14 @@ - + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/SplashActivity.java b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/SplashActivity.java new file mode 100644 index 0000000..5d4ac8a --- /dev/null +++ b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/SplashActivity.java @@ -0,0 +1,26 @@ +package com.android_app.matan.ara.sagi.thesocialnotework; + +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.widget.ImageView; + +public class SplashActivity extends AppCompatActivity { + + private ImageView appSplashScreen; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + appSplashScreen = (ImageView) findViewById(R.id.sa_splashScreenImage); + Intent intent = new Intent(this, LoginActivity.class); + startActivity(intent); + finish(); + } + +// protected void onCreate(Bundle savedInstanceState) { +// super.onCreate(savedInstanceState); +// setContentView(R.layout.activity_splash); +// } +} diff --git a/app/src/main/res/layout/activity_splash.xml b/app/src/main/res/layout/activity_splash.xml new file mode 100644 index 0000000..7036fbc --- /dev/null +++ b/app/src/main/res/layout/activity_splash.xml @@ -0,0 +1,18 @@ + + + + +