开发者

Forcing activity to run an activity in landscape in android 1.5

I have an application which is in portrait mode. However, I want to run a particular activity in landscape mode. I have tried the following with no success.

1. android:screenOrientation="lan开发者_如何学Godscape" in AndroidManifest.xml
2. this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in activity requiring landscape mode

as specified here. Please help. Thanks


The manifest solution supplied in the question you linked to definitely works. Here is a sample project using android:screenOrientation="landscape".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜