I already developed one application which works with 480×800 screen size. But when I put my app on another mobile with 320×240 resolution, the buttons at bottom on screen is not visible(its cropped). If i drag to the screen also its not visible. Now I would like two solutions
- If my activity has only one ImageView covering full screen of size 480×800, how can i make change my app to fit this screen for 320×240 screen size?
- If I have a form bigger size than than the screen then I need the user to drag the screen to bottom to see the bottom screen contents. How to do that?
please help…
For 1) you should just adapat the image size to your ImageView parent (the ‘window’). Use this in your layout:
(Use match_parent instead of fill_parent if your developping for API 8 or higher)
For 2) you should put your controls in a
ScrollViewEdit after you posted your layout:
Same advices as above apply but:
you do not need to put a wrapping LinearLayout around your ImageView: just remove it.
Replace the root LinearLayour of your second layout by a ScrollView.