How to Support Multiple Screens in ANDROID

18:41:00 Dhaval Sodha Parmar 0 Comments

A sample application that shows how to use resource directory qualifiers to show different resources to different screen configurations.


create application in res folder create new folder for layout name layout-land.


in res/layout/main.xml



in res/layout-land/main.xml




also add in your Androidmanifest.xml file



check output in different size screen 
1. Android 2.2 Skin : WVGA 
-> when screen is portrait

-> when screen is landscape



2. Android 2.3.3 Skin : WVGA854
-> when screen is landscape




-> when screen is portrait


it is also tested in Android 2.2 skin HVGA

0 comments: