开发者

Specifying the screen orientation of an ACTION_VIEW intent

开发者 https://www.devze.com 2023-02-16 08:53 出处:网络
I want to play a video, so I\'m using action_view like this. intent.setAction(android.content.Intent.ACTION_VIEW);

I want to play a video, so I'm using action_view like this.

intent.setAction(android.content.Intent.ACTION_VIEW);

Does anyone know of a way to specify that I want the video always play开发者_开发百科ed in a vertical screen orientation, or that determination always up to an activity itself?


That determination is up to the activity itself.


In the layout XML file you could add:

android:orientation="vertical"
0

精彩评论

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