How do I prevent Android Studio from automatically collapsing my packages in project navigation?

心已入冬 提交于 2019-12-04 15:20:25

问题


I have run into this annoyance over and over again and have been unable to find a solution or an answer here for it:

When I create a package in my application and then add a package within it, if I do not have a file in the directory already it will auto collapse my package in the left-side navigation of Android Studio. This prevents me from adding other sub-packages to the parent package, without manually resolving the issue within the file system.

For Example:

What I want is:

-presentation   
  -screens
     -devicescreen
         -adapters
         -presenters
         -views

回答1:


In the 1:Project view, you have Hide Empty Middle Packages turned ON. You need to turn it off. Once turned off it will be shown as Compact Empty Middle Package. Please look at the screenshot attached.



来源:https://stackoverflow.com/questions/33318733/how-do-i-prevent-android-studio-from-automatically-collapsing-my-packages-in-pro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!