Created
April 15, 2018 20:34
-
-
Save douglasrafael/aa5f37b84464730f64c6734c95624e9d to your computer and use it in GitHub Desktop.
Android Snackbar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Snackbar snackbar = Snackbar.make(getView(), R.string.elderly_register_success, Snackbar.LENGTH_LONG); | |
| View snackbarView = snackbar.getView(); | |
| TextView textView = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text); | |
| textView.setMaxLines(4); // show multiple line | |
| snackbar.setAction(R.string.yes_text, (v) -> { | |
| mListener.onFormAssessment(elderly); | |
| }); | |
| snackbar.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment