Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- <color name="red">#F11515</color>
- <color name="intelliJ">#302525</color>
- */
- private void showSnackbar(String message, boolean warnNotif) {
- int colorId = R.color.intelliJ;
- if (warnNotif) {
- colorId = R.color.red;
- }
- Snackbar.make(findViewById(android.R.id.content), message, Snackbar.LENGTH_LONG)
- .setBackgroundTint(getResources().getColor(colorId))
- .show();
- }
Add Comment
Please, Sign In to add comment