splash logic
splashText = findViewById(R.id.splash_text);
splashText.animate().alpha(0);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
splashText.animate().alpha(1).setDuration(1000);
}
}, 2000);
-
Create a firebase project
-
Add an android app by pasting the app's package name in firebase console
-
Look for your android studio's debug key
-
Add the debug key to the firebase project
-
Add the google-services.json file to your app folder
Toast
Toast.makeText(Activity.this, "Message", Toast.LENGTH_SHORT).show();
Snackbar
Snackbar.make(View, "Message", Snackbar.LENGTH_SHORT).show();