user2263764
user2263764

Reputation: 351

I can't create different layout for S3 and Nexus4

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

Answers (2)

abbas.aniefa
abbas.aniefa

Reputation: 2905

For Nexus 4 create

-res/layout-sw384dp

For Samsung S3

-res/layout-sw360dp

Upvotes: 1

Rahul Sainani
Rahul Sainani

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

Related Questions