Snackbar的使用方法
Snackbar.make(view, "data deleted",
Snackbar.LENGTH_LONG)
.setAction("Undo",
new View.OnclickListener(){
@override
public void onclick(View v){
// do something
}
}).show();