> > I can do it for normal screen sizes by hardcoding the screen size to > desired px but it is not working on bigger screensizes, I want to add this > in layout.xml please advice. >
You shouldn't be hard-coding pixels sizes for anything in your layouts. As you have already seen, this will break as soon as you go to different screen sizes. Use weights in your layouts, make things relative to each other, and use "dp" instead of "px" as the size type to get a consistent layout across different screen sizes. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en