Android dynamically stacking views -
it seems issue pretty confusing me.
i want view added on click on top of one. this:
- view
- view
- view
- view
does know how this?
that depends on "on top of one" means.
if mean on y axis (vertically screen), use vertical
linearlayout
.
if mean on z axis (perpendicular screen, heading towards user's eyes), use framelayout
or relativelayout
, later children higher on z axis earlier children. or, if minsdkversion
21 or higher, can use elevation
property control z axis positioning.
Comments
Post a Comment