Android: How to create a layout that slides up/down with button press? -


i'm working on android app (api 14 - 21), layout so:

----------------------- |  layout 1           | ----------------------- | x | layout 2        | ----------------------- |                     | |                     | |  layout 3           | |                     | |                     | ----------------------- 

when "x" clicked, need layout 3 slide off screen bottom, soft keyboard pop up, "x" , layout 2 slide down (but maintain size) above soft keyboard, , layout 1 expand downward fill space. looks this

----------------------- |                     | |  layout 1           | |                     | ----------------------- | x | layout 2        | ----------------------- |                     | |  soft keyboard      | |                     | ----------------------- 

i tried have relativelayout main layout others. had layout 1 aligned top/left of parent, "x" + layout 2 container aligned left , layout_above layout 3, , layout 3 aligned bottom/left parent. figured if set layout 3 visible/gone in code, it. instead, layout 3 disappears, else stays in place, , see white background layout 3 was.

any ideas on how can achieve effect?

did try resize layout 1 , layout 2 fullscreen after setting layout3 gone?


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -