Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Force landscape on android tablets?

$
0
0

How can I force landscape on Android tablet? For non-tablets, I am using napp drawerview and for tablets I am using a fake splitview and want to force it to stay in landscape. I havent not edited the xml, because I am not sure I can define one orientation for tablets and another for phones. I have tried setting:

Ti.Android.currentActivity.setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_LANDSCAPE);

and

self.orientationModes = [Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT];


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>