The main view element in the layout for my activity is a VideoView. My video is rendered to the landscape resolution of the device, but all of the content in the video is sideways, so its still meant to be viewed while the device is in the portrait position even though I have to set my activity to android:screenOrientation="landscape"
in my manifest (I have to do that or else the video doesn't take up the full screen). My question is: Is it possible for me to set a parameter on my video view that tells it to use landscape mode but have everything else that happens in my app be oriented for portrait mode? Similar to the android:orientation="horizontal/vertical"
tag for LinearLayouts.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
My question is: Is it possible for me to set a parameter on my video view that tells it to use landscape mode but have everything else that happens in my app be oriented for portrait mode?
No, sorry.
On Android 3.0, you could try playing around with android:rotation
, but I fear that this may slow things down tremendously. Plus, of course, it's only on 3.0.