2

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?

4

1 回答 1

2

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.

于 2013-07-02T11:06:40.583 回答