简体   繁体   English

需要在Project Tree Android Studio上进行解释

[英]Need explanation on Project Tree Android Studio

I may be missing something here but, how come my android project tree used to look like that when I created my first project 5 months ago (with folders like .idea, build, or R.java) 我可能在这里丢失了一些东西,但是,五个月前创建我的第一个项目(使用.idea,build或R.java等文件夹)时,我的android项目树怎么会看起来像那样

在此处输入图片说明

And now, I've just created a new projet and it looks like that : 现在,我刚刚创建了一个新的projet,它看起来像这样:

在此处输入图片说明

Did I make a mistake at some point ? 我在某个时候犯了一个错误吗? How can I display all the folders and files like R.java ? 如何显示R.java之类的所有文件夹和文件?

Thank you. 谢谢。

If you look at the files outside of Android Studio, you should find that the structure is nearly identical. 如果查看Android Studio外部的文件,则应该发现其结构几乎相同。

What you are seeing is the new Android project view. 您将看到的是新的Android项目视图。 Note that at the very top of your screenshots the first one says "project" and the second one says "Android." 请注意,在屏幕快照的最顶部,第一个显示为“项目”,第二个显示为“ Android”。

The Android project view simplifies the way the information is present a bit- for example, it will put all your Gradle scripts together and it will combine drawables with the same name to make finding different versions of the same drawable a bit easier. Android项目视图简化了信息显示的方式-例如,它将所有Gradle脚本放在一起,并将具有相同名称的可绘制对象组合在一起,从而使查找同一可绘制对象的不同版本变得更加容易。

If you don't like the new view, you can click on "Android" to see a dropdown containing other options, including the old Project view. 如果您不喜欢新视图,则可以单击“ Android”以查看包含其他选项的下拉列表,包括旧的Project视图。

Sorry, silly mistake : the view was different. 抱歉,这是愚蠢的错误:看法不同。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM