android - How do I force a ViewGroup to draw off screen? -


i have several linearlayouts filled downloaded images or text within scrollview. linearlayouts have layoutanimation applied them, each 1 "slides" place when drawn. there way force offscreen linearlayouts draw time user scrolls them, animation has completed? i've tried measuring each view so: (container viewgroup)

int measuredwidth = view.measurespec.makemeasurespec(layoutparams.fill_parent, view.measurespec.at_most);  int measuredheight = view.measurespec.makemeasurespec(layoutparams.wrap_content, view.measurespec.unspecified);  container.measure(measuredwidth, measuredheight);  container.layout(0, 0, container.getmeasuredwidth(), container.getmeasuredheight()); container.requestlayout(); 

but still won't draw until appear on screen during scrolling (which fine animation makes it.. er, not fine)

if don't want run animation why don't remove animation? framework apply animation because tells to.

also note none of code causes redraw. draw need call invalidate() or draw().


Comments