Android Question Show panel in a loaded activity

jcesar

Active Member
Licensed User
Longtime User
Hi

My app starts with a simple layout. This layout only contains a listview in full screen. (image 1)

So when the user touch the listview, i want show a panel in the botton of screen. (image 2)

But how can i add a view (panel) to a already loaded layout and keep the botton of listview at top of panel ?
 

Attachments

  • img_full.png
    img_full.png
    6 KB · Views: 177
  • img_panel.png
    img_panel.png
    10.3 KB · Views: 160

KMatle

Expert
Licensed User
Longtime User
There are many ways. What you can do is f.e. load the whole layout with the panel at the bottom and increase the SV's height to 100% at the start to cover the panel at the bottom.

If it's clicked just set the heigth to the original value (store it at the start) and vice versa.
 
Upvote 0
Top