I have an android app in which the opening screen is a simple linearlayout with a background image which covers the full screen and 2 buttons in the bottom half of the screen one above the other. (The problem image link pasted below should give an idea of how a correct image should look like)
Currently, I use a LinearLayout to describe this simple screen with a bgimage for the background, with vertical orientation for the 2 buttons and their width set as fill_parent, height as wrap_content; buttons separated by 15 dip and the top button is set to 160 dip below the center of the screen. Now the problem: this screen works fine in normal resolution medium density (320x400) but when I see the same screen in either 392x653 (nexus1) or 240x400 (normal res, low density) the button alignment is definitely off (it seems to have vertically moved almost to the center of screen in the 392x653 case). I have tried all kinds of combinations to make this work from toggling anydensity, making sure to use only dip's, trying compatibility mode, using RelativeLayout, checking the values via Hierarchy Viewer etc etc but I am finding no proper solution and am stumped by what seems a simple problem An example image of the wrongly aligned page is present at http://www.techgaruda.com/~techgaruda/deanslist_392x653.JPG (Is it because the background image has nothing to do with the positioning of the buttons and when the scaling happens, somehow, the background gets scaled differently from the buttons resulting in a badly aligned image?) Any help is greatly appreciated Android_TG -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

