1

I have been searching for example when I can customize my AlertDialog in the same way the permissions are asked on Android 10 and above, with all the options in between and center aligned.

enter image description here

Any help will be appreciated.

Vikas Pal
  • 58
  • 9
  • Does this answer your question? [How can I customize permission dialog in Android?](https://stackoverflow.com/questions/33266328/how-can-i-customize-permission-dialog-in-android) – EraftYps May 22 '21 at 23:19
  • No, actually, I don't want to customize the permissions dialog. I want my alertdialogs in the application to be shown in a similar style as it would help in the overall UI being consistent. – Vikas Pal May 23 '21 at 16:39
  • Create a Layout and set it to your `AlertDialog`([how to](https://stackoverflow.com/questions/2795300/how-to-implement-a-custom-alertdialog-view)), the layout is pretty basic as well. – Lalit Fauzdar Sep 24 '21 at 20:49

1 Answers1

0

I have designed such a dialog in one of my projects named OptionalDialog. With this custom dialog, you can add one, two, or three options to the dialog. You can add a hint to your dialog too. To find out more, please visit the class on my GitHub account.

OptionalDialog with three options