Android - How to determinate ViewFlipper children size when not displayed?
<p>I'm actually making an application using a ViewFlipper to display 3 differents custom views. These views are, for each one, in a ScrollView (putting the ViewFlipper in a single ScrollView isn't making my onFling gestures really efficient). And i'm actually trying to synchronize the three Scrollbars position. At this point using a single ScrollView would have been easier but i trying to not use this solution.</p>

<p>I'm using a ScrollListener for each ScrollView to set the others ScrollView scroll position like in this thread : <a href="http://stackoverflow.com/questions/3948934/synchronise-scrollview-scroll-positions-android">Synchronise ScrollView scroll positions - android</a>.</p>

<p>The problem is that this method will works but the first time. When i'm on a ScrollView, the two others are not drawn already and their height is null. So setting their scroll position isn't working.</p>

<pre><code>/*Instanciate ScollViews*/
    scrollViewLeft = (ScrollableScrollView) findViewById(R.id.scroll_prev);
    scrollViewCenter =(ScrollableScrollView) findViewById(R.id.scroll_current);
    scrollViewRight = (ScrollableScrollView) findViewById(R.id.scroll_next);

/*Fill views with events*/ 
    setDayEvents(calIns.getPrevCal(),leftDayView);    
    setDayEvents(calIns.getActualCal(),centerDayView);  
    setDayEvents(calIns.getNextCal(),rightDayView); 

    scrollViewLeft.setScrollViewListener(this);
    scrollViewCenter.setScrollViewListener(this);
    scrollViewRight.setScrollViewListener(this);
</code></pre>

<p>So finally my question is, should i use another method to find the scroll position of the two others views ? Or can i force the view to be drawn in a ViewFlipper ?</p>

<p>Thanks :)</p>

<p>Clement.</p>
