mirror of
https://github.com/Team-xManager/xManager.git
synced 2024-11-27 12:45:26 +01:00
Update SplashActivity.java
This commit is contained in:
parent
95550e9998
commit
6893549e5a
@ -29,7 +29,6 @@ import androidx.fragment.app.DialogFragment;
|
|||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import com.google.android.gms.ads.MobileAds;
|
import com.google.android.gms.ads.MobileAds;
|
||||||
import com.google.firebase.FirebaseApp;
|
|
||||||
import com.wuyr.rippleanimation.*;
|
import com.wuyr.rippleanimation.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.text.*;
|
import java.text.*;
|
||||||
@ -55,7 +54,7 @@ public class SplashActivity extends AppCompatActivity {
|
|||||||
super.onCreate(_savedInstanceState);
|
super.onCreate(_savedInstanceState);
|
||||||
setContentView(R.layout.splash);
|
setContentView(R.layout.splash);
|
||||||
initialize(_savedInstanceState);
|
initialize(_savedInstanceState);
|
||||||
FirebaseApp.initializeApp(this);
|
|
||||||
MobileAds.initialize(this);
|
MobileAds.initialize(this);
|
||||||
|
|
||||||
initializeLogic();
|
initializeLogic();
|
||||||
@ -80,37 +79,37 @@ public class SplashActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (1 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
if (1 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
||||||
title_splash.setText("Freedom");
|
title_splash.setText("Made with Love");
|
||||||
title_splash.setTextSize((int)25);
|
title_splash.setTextSize((int)25);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (2 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
if (2 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
||||||
title_splash.setText("Superior");
|
title_splash.setText("Freedom");
|
||||||
title_splash.setTextSize((int)25);
|
title_splash.setTextSize((int)25);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (3 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
if (3 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
||||||
title_splash.setText("Uprising");
|
title_splash.setText("Superior");
|
||||||
title_splash.setTextSize((int)25);
|
title_splash.setTextSize((int)25);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (4 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
if (4 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
||||||
title_splash.setText("Never Go Back");
|
title_splash.setText("Superlative");
|
||||||
title_splash.setTextSize((int)25);
|
title_splash.setTextSize((int)25);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (5 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
if (5 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
||||||
title_splash.setText("Saving Your $10");
|
title_splash.setText("Never Go Back");
|
||||||
title_splash.setTextSize((int)25);
|
title_splash.setTextSize((int)25);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (6 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
if (6 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
||||||
title_splash.setText("It's A Movement");
|
title_splash.setText("Saving Your $10");
|
||||||
title_splash.setTextSize((int)25);
|
title_splash.setTextSize((int)25);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (7 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
if (7 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
||||||
title_splash.setText("Keep 'Em Coming");
|
title_splash.setText("It's A Movement");
|
||||||
title_splash.setTextSize((int)25);
|
title_splash.setTextSize((int)25);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -136,10 +135,12 @@ public class SplashActivity extends AppCompatActivity {
|
|||||||
animation_icon = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
|
animation_icon = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
|
||||||
animation_icon.setDuration(800); icon_splash.startAnimation(animation_icon);
|
animation_icon.setDuration(800); icon_splash.startAnimation(animation_icon);
|
||||||
animation_icon = null;
|
animation_icon = null;
|
||||||
|
|
||||||
Animation animation_title;
|
Animation animation_title;
|
||||||
animation_title = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
|
animation_title = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
|
||||||
animation_title.setDuration(800); title_splash.startAnimation(animation_title);
|
animation_title.setDuration(800); title_splash.startAnimation(animation_title);
|
||||||
animation_title = null;
|
animation_title = null;
|
||||||
|
|
||||||
Timer = new TimerTask() {
|
Timer = new TimerTask() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Loading…
Reference in New Issue
Block a user