1

I wish to create various layouts for various screen resolutions, like hdpi, xhdpi etc.

I read up here about how i can do it.

So i created two directories for layout-xlarge and layout-large in my res directories and placed the xml layout there.

My phone that i know to be a hdpi phone crashes saying it can not find resource directory.

What am i doing wrong. My phones is Samsung Nexus s.

Lucifer
  • 28,933
  • 23
  • 88
  • 140
AndroidDev
  • 15,221
  • 28
  • 80
  • 118

2 Answers2

1

Use this code in your manifest :

     <supports-screens android:resizeable="true"
              android:smallScreens="true"
              android:normalScreens="true"
              android:largeScreens="true"
              android:xlargeScreens="true"
              android:anyDensity="true"/>
The Holy Coder
  • 6,374
  • 8
  • 36
  • 71
1

For your Samsung Nexus S phone, the layout folder will be used.

Mohit Verma
  • 3,025
  • 1
  • 19
  • 36