Skip to content

Instantly share code, notes, and snippets.

@emartynov
Created November 18, 2014 16:11
Show Gist options
  • Save emartynov/6e7f11072b1d3244a0f5 to your computer and use it in GitHub Desktop.
Save emartynov/6e7f11072b1d3244a0f5 to your computer and use it in GitHub Desktop.
Issue with negative button
new MaterialDialog.Builder(this)
.title(R.string.states)
.items(R.array.states)
.itemsCallback(new MaterialDialog.ListCallback() {
@Override
public void onSelection(MaterialDialog dialog, View view, int which, String text) {
Toast.makeText(getApplicationContext(), which + ": " + text, Toast.LENGTH_SHORT).show();
}
})
.negativeText("Negative")
// .positiveText("Positive")
.build()
.show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment