user1816780
user1816780

Reputation: 121

layout-xxhdpi/layout-xxlarge not supported on Android Studio

Not supported on Android Studio. I want to create a layout new phones, like Galaxy S4. I have one to test on and the sizes are too small. But android studio compiler gives an error, because that forward slash is appearing. I tried layout-xxlarge, it give an error too.

android-apt-compiler: [xxxxxxxxxx] invalid resource directory name: 

C:\Users\xxxxxxxxxxxxxx\Dropbox\android_studio_workspace\xxxxxxxxxxxxxxxxx\res/layout-xxlarge

Are these layouts supported on Eclipse?

Upvotes: 2

Views: 3810

Answers (1)

g00dy
g00dy

Reputation: 6778

As you can see here, section "Declaring Tablet Layouts for Android 3.2":

For the first generation of tablets running Android 3.0, the proper way to declare tablet layouts was to put them in a directory with the xlarge configuration qualifier (for example, res/layout-xlarge/). In order to accommodate other types of tablets and screen sizes—in particular, 7" tablets—Android 3.2 introduces a new way to specify resources for more discrete screen sizes. The new technique is based on the amount of space your layout needs (such as 600dp of width), rather than trying to make your layout fit the generalized size groups (such as large or xlarge).

The best you can get is:

res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation

The ones you need are defined here.

Upvotes: 2

Related Questions