n my application, I want to set different font size and paddings for different mobile devices. I use this method explain in Android documentation.
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
i use galaxy s2 and htc one for the testing , it seems no matter what folder i create it allways use the xml from the res/layout/
i added this in manifest
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
how can i make sure the galaxy and htc one will use different xml ? instead the current situation that they both use the default layout .