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

How can I customize open and close animation of the dialog #2

Closed maddog05 closed 8 years ago

maddog05 commented 8 years ago

How can I change or set my custom animation for the open/close animation of the dialog.

javiersantos commented 8 years ago

It is not possible, because dialog animations are set in the style.xml file and it can not be changed programmatically.

However, I can add more animations to the dialogs. Let me know which animations do you want to see in upcoming updates.

maddog05 commented 8 years ago

maybe the duration of the animation (FAST = 300ms, NORMAL = 600ms, SLOW = 1000ms) basically that

javiersantos commented 8 years ago

Using the latest library version (1.1.1+).

// Set if the dialog will be displayed with an open and close animation, with custom duration.
// Default: false, Duration.NORMAL
.withDialogAnimation(true, Duration.SLOW)
maddog05 commented 8 years ago

Thanks, sorry for answer you late