【发布时间】:2013-08-24 07:16:48
【问题描述】:
我在 res 文件夹中有不同的布局文件夹:
- 布局
- layout-large
- layout-sw600dp
- layout-sw800dp
- layout-xlarge
现在我将使用 Google TV emultor 中现有的 android 应用程序。
为了兼容 Google TV 布局,我添加了
layout-large-notouch 文件夹,这个不行然后删除这个并添加
layout-tvdpi-notouch 文件夹 这不行然后删除这个并添加
layout-xhdpi-notouch
但我的应用程序是从 layout-large 为 Google TV 渲染布局。
我不想删除 layout-large,也不想对 layout-large 进行任何更改。
是否有来自不同文件夹的 Google TV 渲染布局..?
【问题讨论】:
-
您可以尝试 layout-large-notouch-landscape ,它应该可以获取 Google TV 屏幕,一般来说 layout-large-notouch 应该也可以。即使在谷歌电视上也不使用 TVDPI。
-
我使用了上述选项,但我的 GoogleTV 模拟器仍然从“layout-large”文件夹渲染布局
-
layout-large-notouch-landscape 不是有效的资源文件。至少不是根据Android Studio。你的意思是:layout-large-notouch!
标签: android android-layout android-emulator google-tv