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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -