batuman
batuman

Reputation: 7304

How to rotate AlertDialog in the program?

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

Upvotes: 0

Views: 686

Answers (2)

quangkid
quangkid

Reputation: 1418

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

enter image description here

Upvotes: 1

ElectronicGeek
ElectronicGeek

Reputation: 3320

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.

Upvotes: 0

Related Questions