title: Global SnackBar in android
body: <p>I am new to android and i want to implement a snack bar in my android app.as well I want this globally. I googled on it and found I need to create a coordinate Layout for view. then i write like snackbar(coordinatelayout, text, time);  </p>
  
  <p>How can make this static. so that my code will be optimized? please tell me.</p>