我想在android studio中使用qulifier <large>,但是我无法添加目录layout-large

时间:2015-12-14 11:14:35

标签: android android-layout

我是android的新手。在我的教程书中( 在Eclipse中教学有点过时了,只需添加一个目录layout-large来编写另一个布局xml文件以适应大屏幕。

我使用android studio,当我添加目录时,它说: enter image description here

并添加layout-large目录:

enter image description here

我想知道是否有一种不同的方法可以使用qulifier来适应adroid studio中的大屏幕?

2 个答案:

答案 0 :(得分:2)

您可以尝试使用文件资源管理器在/res目录中添加该文件夹。

或者您可以尝试切换到Project视图,而不是Android在Android Studio中执行此操作,如此屏幕截图所示:

enter image description here

在项目视图中,IDE中可以看到所有不同的资源文件夹,而在Android视图中,这些资源文件夹在一个看似单个文件夹中可视化。

enter image description here

看到此消息后,您可以右键单击res文件夹并选择new>Android Resource Directory

在那里,您可以向新文件夹添加不同类型的资源参数。 这些资源参数可以是区域设置,密度或您的案例屏幕大小。

enter image description here

答案 1 :(得分:1)

使用“Project”选项切换项目视图而不是“Android”,您将看到该文件夹​​。