Created
March 8, 2017 04:35
-
-
Save sreelallalu/feb90bff2837ba8ce496834dbb85cb73 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void showsnackbar(String message){ | |
| Snackbar snackbar = Snackbar | |
| .make(findViewById(R.id.update_relative(parentlayout id)), message, Snackbar.LENGTH_SHORT); | |
| View sbView = snackbar.getView(); | |
| sbView.setBackgroundColor(Color.parseColor("#A981CA")); | |
| TextView textView = (TextView) sbView.findViewById(android.support.design.R.id.snackbar_text); | |
| textView.setTextColor(Color.BLACK); | |
| snackbar.show(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment