javiersantos / BottomDialogs

An Android library that shows a customizable Material-based bottom sheet. API 11+ required.
Apache License 2.0
642 stars 119 forks source link

Dialog dismiss #9

Closed Spotik closed 8 years ago

Spotik commented 8 years ago

Hi, I have a dialog with no buttons, just images, and I cant find ButtonDialog.dismiss()... And can I use a style on BottomDialog?

javiersantos commented 8 years ago

To dismiss the bottom dialog:

BottomDialog bottomDialog = new BottomDialog.Builder(this)
      .setTitle("Awesome!")
      .setContent("Glad to see you like BottomDialogs! If you're up for it, we would really appreciate you reviewing us.")
      .build();
...
bottomDialog.dismiss();

Currently you can apply a custom view, but a style is not supported yet.

Hope it helps you.

EDIT - Make sure you are using the latest update (v1.1).