Reputation: 351
I can not create a different layout for these two devices (S3 and Nexus 4). Creating these folders:
-/res/layout-xhdpi
-/res/layout-sw360dp
Both devices refer to "layout-sw360dp." Maybe I'm wrong settings of AVD? For S3 I configured like this:
Name: Galaxy S3
Screen Size: 4.8
Resolution: 720 x 1280
Size: Large
Screen Ratio: Long
Density: xhdpi
What's wrong?
Upvotes: 0
Views: 562
Reputation: 2905
For Nexus 4 create
-res/layout-sw384dp
For Samsung S3
-res/layout-sw360dp
Upvotes: 1
Reputation: 3717
Both these devices are from the same bucket of screen resolution and size. Both are xhdpi and sw360dp. They'd have the same layout. Why do you want to create different layouts for them?
Upvotes: 0