android:@Theme.Translucent 锁定人像方向? [英] android:@Theme.Translucent Locks orientation to Portrait?

查看:28
本文介绍了android:@Theme.Translucent 锁定人像方向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新样式来将背景设置为透明,但出于某种原因,当设备旋转时,应用程序不会将布局更改为横向.我应该在新风格中指定一些东西吗?

I've created a new style to set the background as transparent, but for some reason ever since the app doesn't change layout to landscape when device is rotated. Should I specify something in the new style ?

代码如下:

< style name="Transparent" parent="android:@Theme.Translucent">
    < item name="android:windowBackground">@color/background</item>
</style>

推荐答案

我实际上有点解决了它显然在透明背景的情况下方向是根据后台应用程序的,因为我一直在测试后面的启动器时,我总是只有肖像.

I actually kinda solved it apparently the orientation is according to the background app in case of transparent background, since i kept testing when the Launcher in the back, i always got portrait only.

这篇关于android:@Theme.Translucent 锁定人像方向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆