Note that there are some explanatory texts on larger screens.

plurals
  1. POScrolling a ListView and a ListFragment of a TabHost simultaneously
    primarykey
    data
    text
    <p>As the ridiculously long title would suggest this is a complicated problem to explain so here's an illustration:</p> <p><img src="https://i.stack.imgur.com/nnQJo.png" alt="poorly-drawn layout"></p> <p><strong>General:</strong> What I have designed is a FragmentActivity that contains a ListView and a TabHost. The TabHost contains 3 tabs in the form of ListFragment.</p> <p><strong>RED column:</strong> This is my ListView that resides in the FragmentActivity layout and class.</p> <p><strong>GREEN column:</strong> The TabHost that resides in the same FragmentActivity and layout as the ListView, and contains 3 ListFragment classes, each with its own layout.</p> <p><strong>What I want to accomplish:</strong> When I touch and scroll (fling) one of the lists (either the RED or GREEN column), I want all the others to move at the same time. So when I scroll the RED column, the <strong>current</strong> GREEN one will scroll simultaneously when RED is touched and moreover the other tabs will go at the same position with it. I want it to feel like one united List with the left column fixed when changing tabs (horizontal scrolling on GREEN column).</p> <p><strong>Class sum up:</strong></p> <ul> <li>MainFragmentActivity : contains the ListView and TabHost</li> <li>ListFragment1</li> <li>ListFragment2 : they are separate classes that are contained in the TabHost as tabs</li> <li>ListFragment3</li> </ul> <p><strong>Layout sum up:</strong></p> <ul> <li>main_fragment_activity</li> <li>tab1_fragment</li> <li>tab2_fragment</li> <li>tab3_fragment</li> </ul> <p>Sorry for long post and title. I just wanted to clarify my question.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload