Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can we sort layout xml file

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have more than 20 layout xml files.all of them are in layout folder.is it better way to arrange them like we arranging Java classes in packages?
 
Naishadh Parmar
Ranch Hand
Posts: 95
C++ Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


It depends.

If you want to your app to work on multiple screen sizes, you make separate folders and place a separate layout for each screen size (small, normal, large, xlarge). So for one layout you have four files of the same layout in different folders.
If you want to your app to work on multiple pixel densities, you make separate folders and place a separate layout for each pixel density (ldpi, mdpi, hdpi, xhdpi). So for one layout you have four files of the same layout in different folders.
If both, then both.

But as such, I don't think there is any way to arrange the layouts INSIDE the folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic