Skip to content

Commit f9910d1

Browse files
committed
app ready to display
1 parent c84a64b commit f9910d1

33 files changed

+207
-13
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
<meta-data
2626
android:name="com.google.android.geo.API_KEY"
2727
android:value="@string/map_key" />
28+
<meta-data
29+
android:name="preloaded_fonts"
30+
android:resource="@array/preloaded_fonts" />
2831

2932
<activity android:name=".BaseActivity">
3033
<intent-filter>

app/src/main/img1-playstore.png

3.44 KB
Loading

app/src/main/java/com/example/firebase01/ScreenSplash.java

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,58 @@
22

33
import android.content.Intent;
44
import android.os.Bundle;
5+
import android.os.Handler;
6+
import android.view.WindowManager;
7+
import android.view.animation.Animation;
8+
import android.view.animation.AnimationUtils;
9+
import android.widget.ImageView;
10+
import android.widget.TextView;
511

612
import androidx.annotation.Nullable;
713
import androidx.appcompat.app.AppCompatActivity;
814

15+
16+
917
public class ScreenSplash extends AppCompatActivity {
18+
19+
private static int SPLASH_SCREEN = 5000;
20+
21+
Animation sideAnim, bottomAnim;
22+
ImageView image;
23+
TextView app, detail;
24+
25+
1026
@Override
1127
protected void onCreate(@Nullable Bundle savedInstanceState) {
1228
super.onCreate(savedInstanceState);
29+
setContentView(R.layout.activity_screen_splash);
30+
31+
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
32+
33+
34+
sideAnim = AnimationUtils.loadAnimation(this,R.anim.side_animation);
35+
bottomAnim = AnimationUtils.loadAnimation(this,R.anim.bottom_animation);
36+
37+
image =findViewById(R.id.imageView);
38+
app = findViewById(R.id.textView2);
39+
detail = findViewById(R.id.textView3);
40+
41+
image.setAnimation(sideAnim);
42+
app.setAnimation(bottomAnim);
43+
detail.setAnimation(bottomAnim);
44+
45+
46+
new Handler().postDelayed(new Runnable() {
47+
@Override
48+
public void run() {
49+
Intent intent = new Intent(ScreenSplash.this, GoogleSignInActivity.class);
50+
startActivity(intent);
51+
finish();
52+
}
53+
},SPLASH_SCREEN);
54+
55+
56+
1357

14-
startActivity(new Intent(this,GoogleSignInActivity.class));
1558
}
1659
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<translate
4+
android:fromXDelta="0%"
5+
android:fromYDelta="-200%"
6+
android:duration="1500" />
7+
8+
<alpha
9+
android:fromAlpha="0.1"
10+
android:toAlpha="1.0"
11+
android:duration="1500"/>
12+
13+
</set>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<translate
4+
android:fromXDelta="200%"
5+
android:fromYDelta="0%"
6+
android:duration="2000" />
7+
8+
<alpha
9+
android:fromAlpha="0.1"
10+
android:toAlpha="1.0"
11+
android:duration="1500" />
12+
13+
</set>
51.1 KB
Loading
-9.83 KB
Binary file not shown.

app/src/main/res/font/anton.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<font-family xmlns:app="http://schemas.android.com/apk/res-auto"
3+
app:fontProviderAuthority="com.google.android.gms.fonts"
4+
app:fontProviderPackage="com.google.android.gms"
5+
app:fontProviderQuery="Anton"
6+
app:fontProviderCerts="@array/com_google_android_gms_fonts_certs">
7+
</font-family>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<font-family xmlns:app="http://schemas.android.com/apk/res-auto"
3+
app:fontProviderAuthority="com.google.android.gms.fonts"
4+
app:fontProviderPackage="com.google.android.gms"
5+
app:fontProviderQuery="Audiowide"
6+
app:fontProviderCerts="@array/com_google_android_gms_fonts_certs">
7+
</font-family>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<font-family xmlns:app="http://schemas.android.com/apk/res-auto"
3+
app:fontProviderAuthority="com.google.android.gms.fonts"
4+
app:fontProviderPackage="com.google.android.gms"
5+
app:fontProviderQuery="Carter One"
6+
app:fontProviderCerts="@array/com_google_android_gms_fonts_certs">
7+
</font-family>

0 commit comments

Comments
 (0)