I need to implement a screen containing a list of blocks one below the other. Each block will contain elements of mutual overlapping (images, text), for which the relative position should be indicated relative to the upper left corner of the block.
I used to create a list of blocks ListView. For each block I tried to use a relative layout.This works fine when the phone is in landscape mode and the absolute position is indicated relative to the left edge of the phone. But when the phone is placed in portrait mode, the layout is distorted.
- What layout can I use for this scenario?
- Can I specify relative positions as a percentage of the screen width / height instead of pixels?
Vicky source
share