создаю папку по примеру "values-sw600dp-land", в нём файл layout, в нёмThe smallest-width qualifier is available only on Android 3.2 and above. Therefore, you should also still use the abstract size bins (small, normal, large and xlarge) to be compatible with earlier versions. For example, if you want to design your UI so that it shows a single-pane UI on phones but a multi-pane UI on 7" tablets, TVs and other large devices, you'd have to supply these files:
res/layout/main.xml: single-pane layout
res/layout-large: multi-pane layout
res/layout-sw600dp: multi-pane layout
The last two files are identical, because one of them will be matched by Android 3.2 devices, and the other one is for the benefit of tablets and TVs with earlier versions of Android.
To avoid this duplication of the same file for tablets and TVs (and the maintenance headache resulting from it), you can use alias files. For example, you can define the following layouts:
res/layout/main.xml, single-pane layout
res/layout/main_twopanes.xml, two-pane layout
And add these two files:
res/values-large/layout.xml:res/values-sw600dp/layout.xml:<resources>
<item name="main" type="layout">@layout/main_twopanes</item>
</resources>These latter two files have identical content, but they don’t actually define the layout. They merely set up main to be an alias to main_twopanes. Since these files have large and sw600dp selectors, they are applied to tablets and TVs regardless of Android version (pre-3.2 tablets and TVs match large, and post-3.2 will match sw600dp).<resources>
<item name="main" type="layout">@layout/main_twopanes</item>
</resources>
<item name="a_new_task" type="layout">@layout/a_new_task_twopanes_land</item>
где "a_new_task" имя XML ресурса, которое ожидается в самой программе, а "@layout/a_new_task_twopanes_land" сам ресурс. Всё вроде просто и логично, но приложение крашится с ошибкой о том, что ресурс не был найден. Что я делаю не так?



