Question: My `activity` is in landscape mode. That is my intention and I like to keep in landscape. So all `AlertDialog` or Toast come out in `landscape`. For this case, I like to rotate `AlertDialog` 90 deg in the program, how can I do that? Thanks

Answer: 
You may use this layout to custom your dialog : 
<https://github.com/rongi/rotate-layout>

[![enter image description here](https://i.stack.imgur.com/HFqsX.png)](https://i.stack.imgur.com/HFqsX.png)
This is something that could be done with a lot of complicated code, but would be quite confusing to the user, as he would have to rotate his device to the read and react to the dialog.