my dog learned polymorphism*
The moose likes Android and the fly likes how can we sort layout xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "how can we sort layout xml file" Watch "how can we sort layout xml file" New topic
Author

how can we sort layout xml file

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1222
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

Joined: Jun 02, 2011
Posts: 95



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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can we sort layout xml file