Android Question Hiding elements with shift

red30

Well-Known Member
Licensed User
Longtime User
I have two buttons: Button1, Button2. When pushing Button1 I want corresponding CheckBox1, CheckBox2, CheckBox1 and EditText1 hide themself and everything that is below - moves up as on the screenshot2. If I push Button2, they should appear and the rest moves down. There will be several such elements as on the screenshot 1. They are hidden as on the screenshot 3. How can I do this? Show an example please. The project is applied: https://cloud.mail.ru/public/N3ax/UxKKNyaVo
 

Attachments

  • 1_.png
    1_.png
    32.6 KB · Views: 241
  • 2_.png
    2_.png
    27.8 KB · Views: 238
  • 3_.png
    3_.png
    15.1 KB · Views: 230

udg

Expert
Licensed User
Longtime User
Look at xCustomListView. There's a version of it that does exactly what you're asking for.
This one.
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Well. you could group items on separate panels and use your buttons to make them visible/invisible and modify accordigly the relative positions. A lot more work, but doable.

Anyway, not using a form of scrolling view you risk to have items outside the screen and so unreachable by the user.
 
Upvote 0
Top