Sauron
Sauron

Reputation: 6647

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?

Upvotes: 11

Views: 2492

Answers (1)

N J
N J

Reputation: 27505

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

Upvotes: 30

Related Questions