Answers for "implementing snackbar in fragment android"

1

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();
Posted by: Guest on October-21-2020
6

android create snackbar

Snackbar.make(fragmentView, text, Snackbar.LENGTH_LONG).setAction("Action", null /* replace with your action or leave null to just display text*/).show();
Posted by: Guest on March-16-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language