lupaulus
lupaulus

Reputation: 397

How to structure the folder R.layout?

I'm developping my Android application but I'm not right with the project structure because I have all my layout in the folder R.layout

Isn't any way to structure this folder like packages. One folder for activity an other for content, fragment, etc..

Upvotes: 0

Views: 154

Answers (2)

user11298314
user11298314

Reputation:

You can add folder as your package name and declare in manifeast file the path of your folder. And it is good pratice because it directly id

Upvotes: 0

Antonis Radz
Antonis Radz

Reputation: 3097

It is a bad practice, avoid doing that. Always try to follow official guides now it might not seem clear and logical why? and what?, but in a long term you are going to understand and be happy that you followed official guides and best practices.

Happy coding!

Upvotes: 3

Related Questions