I have a Tableview which I fill up with rows via code.
var rowController = Alloy.createController('stockRow'); var row = rowController.getView();The stockRow controller have a simple view with just the TableViewRow with some text and a ImageView
<Alloy> <TableViewRow id="row" layout="vertical" inactive="0" itemID="" selected="0"> <View class="iconColumn"> <ImageView class="categoryIcon" image="/images/small-icons/small-icon-weather.png" /> </View> <View id="weatherContainer" class="contentHolder" layout="vertical"> <Label class="itemHeadline">L('weather')</Label> </View> </TableViewRow> </Alloy>But the Image always take about 200 ms (its 200x200px). Currently I solve the problem by placing the image which is in the imageRow in the view which loads the rows and set it to visible = false, then the images appear without delay.
So my question is, can I preload Images such that somehow or how did I deal with those image load delays?