Skip to content

Instantly share code, notes, and snippets.

@krharsh17
Last active November 7, 2019 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krharsh17/8f58099f4ac11e32799a4b6999ba7bb4 to your computer and use it in GitHub Desktop.
Save krharsh17/8f58099f4ac11e32799a4b6999ba7bb4 to your computer and use it in GitHub Desktop.

SAC Task : Nougat session 2

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);

Integrating firebase-

  • 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

Communicating with user

Toast Toast.makeText(Activity.this, "Message", Toast.LENGTH_SHORT).show();

Snackbar Snackbar.make(View, "Message", Snackbar.LENGTH_SHORT).show();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment