javiersantos / MaterialStyledDialogs

A library that shows a beautiful and customizable Material-based dialog with header. API 14+ required.
Apache License 2.0
1.17k stars 155 forks source link

Icon animation only plays once #29

Closed rayliverified closed 8 years ago

rayliverified commented 8 years ago

In the first build of Material Styled Dialogs, the icon animation would play every time the dialogue appears. Now, the icon animation only plays the first time the dialogue appears.

EDIT: I've looked a bit further and the cause appears to be update v1.1.1 In that update, the dialogue is not rebuilt everytime show() is called which means the animation would not play again. Is there a way around this?

javiersantos commented 8 years ago

I've just released the 2.0 update with some major changes (please see the release description).

There is a workaround using the latest version to play the icon animation every time the dialog is displayed:

MaterialStyledDialog.Builder dialog = new MaterialStyledDialog.Builder(this)
    .setTitle("Awesome!")
    .setDescription("What can we improve? Your feedback is always welcome.")
    ...
    // Add other customizations, BUT don't use .build() or .show() here.

Then use dialog.show to display the dialog.