Reputation: 1
I am handling secondary display from an application developed in the Android Studio using presentation class. Now I want to control the screen orientation
like setting portrait
and landscape
. I am able to set the orientation
for the primary display but not the secondary display.
My XML file is covering the entire display not according to orientation. Is there any way to do this?
Upvotes: -3
Views: 352
Reputation: 561
I'm not sure whether will this work, just give it a try. since Presentation is a Dialog, you may not be able to handle rotation of it. but you can handle the rotation of its base activity. which might affect the rotation of presentation.
Hope this helps!
Upvotes: 0