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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -