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
  • 29,392
  • 25
  • 90
  • 143
AndroidDev
  • 15,993
  • 29
  • 85
  • 119

2 Answers2

1

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

Mohit Verma
  • 3,025
  • 1
  • 20
  • 36
0

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"/>
Manish Dubey
  • 4,206
  • 8
  • 36
  • 65