not attach to context error in fragment when use snackbar code example
Example: show snackbar in fragment
Snackbar snackBar = Snackbar.make(getActivity().findViewById(android.R.id.content),
"Look at me, I'm a fancy snackbar", Snackbar.LENGTH_LONG);
snackBar.show();