Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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:

example of collapsed navigation

What I want is:

-presentation   
  -screens
     -devicescreen
         -adapters
         -presenters
         -views
like image 522
Christopher Rathgeb Avatar asked Oct 24 '15 13:10

Christopher Rathgeb


1 Answers

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.

enter image description here

like image 194
Henry Avatar answered Nov 08 '22 03:11

Henry