I made a function of Snackbar :
void openSnackbar(String title){
Snackbar
.make(findViewById(R.id.coordinatorLayout),
title,
Snackbar.LENGTH_LONG)
.setAction("",this)
.show();
}
But inside seAction()
method second perameter as this
giving error you can't resolve method setAction(java.util.String,package.....)
How to solve this problem?