java - Scrolling header with two list views -


i have header section scroll list view below. problem have toggle below header section allows user switch between 2 list views. best way have header section scroll in sync 2 list views below?

i can share short overview you:

<scrollview ..>      <linearlayout>            <headerview></headerview>            <togglebutton></togglebutton>            <listview></listview>            <listview></listview>      </linearlayout> </scrollview> 

the tricky thing is: have flip visibility of 2 listview visible , gone in toggle button.

1st click on toggle make it

listview1.setvisibility(view.gone) listview2.setvisibility(view.visible) 

2nd click on toggle make it

listview2.setvisibility(view.gone) listview1.setvisibility(view.visible) 

Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -