Android Studio - layout-land 文件夹未出现 [英] Android Studio - layout-land folder not appearing
问题描述
我想在我的 android studio 项目中为纵向和横向模式支持单独的 UI,为此我需要一个名为layout-land"的文件夹,我按照以下步骤创建它:
I want to support separate UIs for both portrait and landscape mode in my android studio project, for which I need to have a folder with name - 'layout-land', to create it I followed below steps:
- 右键单击 res 文件夹并创建一个新目录
- 命名 - 'layout-land'
问题是-创建的文件夹没有出现在 res 文件夹中:(
Problem is- the created folder is not appearing within res folder :(
我一窍不通,请指教.
推荐答案
Android Studio 的android"视图有点令人困惑.它只显示一个真正包含所有文件夹的布局文件夹(也只显示一个可绘制文件夹).将视图切换到项目",您将看到所有文件夹.
That's the slightly confusing 'android' view of Android Studio. It shows only one layout folder (also shows only one drawable folder) which really contains all folders. Switch the view to 'project' and you'll see all folders.
这篇关于Android Studio - layout-land 文件夹未出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!