Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to un-merge Android Studio Packages

Anytime I create a package within a package, and create classes within that sub-package prior to adding classes to the top level package, the packages always merge together.

For example I created the social package, and the contact package within. After adding a few classes to the contact package, Android studio automatically merged the two together as:

enter image description here

Now if I right click to create another class, it simply places it inside the contact package.

How can I "un-merge" pakcags to allow placing classes within the social package?

like image 342
Sauron Avatar asked Nov 12 '15 02:11

Sauron


1 Answers

Try this

In Package explorer

1) Click on small(setting) icon

2) Uncheck Flatten Package and Hide empty middle packages option

see the image below

enter image description here

like image 90
N J Avatar answered Sep 28 '22 05:09

N J