Skip to content

Commit

Permalink
add create snackbar again
Browse files Browse the repository at this point in the history
  • Loading branch information
minaschar committed Jun 19, 2022
1 parent 1be4f78 commit c8759f5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ public static void changeBackgroundColorInView(Context context, View view, int c
view.setBackgroundColor(Utils.getColor(context, colorId));
}

public static Snackbar createSnackbar(View view, String text, int color) {
Snackbar snackbar = Snackbar.make(view, text, Snackbar.LENGTH_SHORT);
snackbar.setBackgroundTint(getColor(view.getContext(), color));
return snackbar;
}

}

0 comments on commit c8759f5

Please sign in to comment.