Android - problema de suporte de tela múltipla
Estou projetando um aplicativo Android que ofereça suporte a tablets, mas estou enfrentando um pequeno problema em relação ao suporte para várias telas.
Alguém pode me dizer, para o projeto de layout abaixo
res/layout/my_layout.xml // layout for normal screen size ("default")
res/layout-small/my_layout.xml // layout for small screen size
res/layout-large/my_layout.xml // layout for large screen size
res/layout-xlarge/my_layout.xml // layout for extra large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation
nós especificamos o código abaixo no arquivo Manifest.
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
Agora o o código permanece o mesmo se os layouts forem os seguintes;
res/layout/main_activity.xml # For handsets (smaller than 600dp available width)
res/layout-sw600dp/main_activity.xml # For 7” tablets (600dp wide and bigger)
res/layout-sw720dp/main_activity.xml # For 10” tablets (720dp wide and bigger)
É obrigatório definir no arquivo manifesto ?? E se eu não definir. Por favor me ajude.