0

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..

Dr Mido
  • 2,414
  • 4
  • 32
  • 72
lupaulus
  • 358
  • 5
  • 22

2 Answers2

3

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!

Community
  • 1
  • 1
Antonis Radz
  • 3,036
  • 1
  • 16
  • 34
  • I have not finish my app but i have yet 13 layouts, I doesn't know if it is a good pratice to have too many layouts. As for me, it's not but I'm not expert. – lupaulus Apr 16 '19 at 13:47
  • 1
    It might be even a hundreds. For good management of them just use good naming conventions so search would be easy – Antonis Radz Apr 16 '19 at 13:49
0

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