0

I have an android application which uses a custom Alert Dialog for showing an image and its description.

I want to make this dialog

  1. Pop up from center like in iPhone.

  2. Push down to center when cancelling.

I know that it is possible by applying animations/styles.How can i make style for this purpose?How to use this?

Thanks in advance

Asha Soman
  • 302
  • 2
  • 6
  • 18

1 Answers1

2

Dialog, was defined in doc, is a small window that prompts the user to make a decision or enter additional information. A dialog does not fill the screen and is normally used for modal events that require users to take an action before they can proceed. With it's subclasses (AlertDialog, ProgressDialog, AppCompatDialog,...), they become a alert system in Android. For making more exciting when they appear/exit, we can set animation for them easily. In this tip, I provide a way to do this trick through styles resource.

http://www.devexchanges.info/2015/10/showing-dialog-with-animation-in-android.html