3

In Eclipse I can flatten Java packages as the following:

enter image description here

How do I achieve the same result with Android Studio, which currently looks like below: enter image description here

2 Answers 2

8

Click in Settings icon in your "Project Bar" and choose "Flattern packages" (first option).

2
  • Thanks, also found that right click on the "Project Bar" would also show the "Flatten Packages" option.
    – Kai
    Nov 16, 2014 at 3:48
  • Now the same feature is Termed as Compact Empty Middle Packages
    – AFLAH ALI
    Oct 4, 2018 at 9:14
1

Just do something like that, actually I was struggling to find project bar 😂

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.