Skip to content
Snippets Groups Projects
Commit ab2e7073 authored by s22thong's avatar s22thong
Browse files
parents 0b3ae87c 5f120feb
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,13 @@ public class MainActivity extends AppCompatActivity {
public void validateAction (View v){
Snackbar.make(findViewById(R.id.mainContent), R.s, Snackbar.LENGTH_LONG).show();
final Snackbar snackbar = Snackbar.make(findViewById(R.id.mainContent), "Snackbar de validation", Snackbar.LENGTH_LONG);
snackbar.setAction("Dismiss", new View.OnClickListener() {
@Override
public void onClick(View v) {
snackbar.dismiss();
}
});
snackbar.show();
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment