Is it safe to create and modify views in a background thread before adding them to a ViewGroup?
<p>I have many views in a linear layout to create. I have created a background thread that loops through all the data and creates an array list of views. At the end of the thread it calls runOnUIThread to loop through the array list and add each view to the linear layout.</p>

<p>Is this dangerous? The views aren't part of the hierarchy yet when I'm creating and manipulating them in the background thread. Initial testing hasn't yielded any problems.</p>

<p>(I am using a linear layout instead of list views, because my experience with list views is that they try to reuse some of their elements for multiple rows. For example, a checkbox that you check becomes unchecked again if it scrolls off the screen and back on. This seems simpler.  Maybe I'm taking a performance hit, though. Still need to check this thoroughly.)</p>
