> > Hi All, > > I need to implement a screen containing a list of blocks one below the > other. Each block will contain mutiple superimpose elements (Images, > text) for which the relative position needs to be specified with > respect to the top left corner of the block. > > For creating the list of blocks i have used listview. For each block > i tried to use relative layout.This works ok when the phone is in > landscape mode and absolute position is specified relative to left > edge of the phone. But when the phone is put in the portrait mode the > layout gets distorted. > > 1) What layout can be used for this scenario?
Your choice of layouts seems fine, at least on the surface. > 2) Can relative positions be specified in terms of percentage of > screen width/height instead of pixels? Not with any existing layout class. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---