Search code examples
androidresourcessubdirectoryscreen-size

Creating layout subfolder for different screen sizes


I want to create subfolders in layout-sw320dp and layout-sw480dp but I recieve duplicate resource error. How I can create sub layout folders while keeping layout-sw480dp and layout-sw320dp system.enter image description here

The question is not duplicate. In this section I am using sw320dp sw480dp so I can create better layouts for different size devices. In the suggested one there isnt anything supporting that. There is only one type of device size information.

I am saying I want to keep this screen size identifying layouts but inside those I want to create subfolders.


Solution

  • The answer is that after you have done your subcategories under that you can actually do layout-sw320dp, layout-sw480dp etc. This question was not duplicate and it was unique.