Wednesday, September 30, 2020

Showing Snackbar with action button in Android

Showing Snackbar with  action button in Android 

void showSnackBarWithMessage(String message)

final Snackbar snack = Snackbar.make(yourView, message, 3000);
snack.getView().setBackgroundColor(ContextCompat.getColor(getActivity(), R.color.colorPrimaryLight));
snack.setAction("OK", new View.OnClickListener() {
public void onClick(View view) {

1 comment:

  1. For ornamental purposes, the big sheets embody silver, gold, and platinum. Sheet metallic is used for automobile bodies, airplane wings, medical tables, building roofs , heaps of|and lots of} other functions. Sheets and other supplies with excessive magnetic permeability also known as rolled steel cores have functions in transformers and electrical machines. Most delicate steel or low carbon steel sheet metals which are be} 1.5 millimeters in thickness will most likely have a Rockwell B hardness rating. Rockwell hardness is just the measuring range that determines the resistance of a material to Beach Shower Curtains for the Bathroom everlasting deformity and penetration by another material.