Hi guys, I am working whit alloy and I declare an activity indicator and a tableView, when call activity indicator.hide(),it disappear but the space where it was showed remain,how can I fix it?
<Alloy> <Collection src ="task"/> <Window title="List Task" id="window_task" onFocus="showIndicator" navBarHidden="false"> <ActivityIndicator id="activityIndicator" message="Loading..."/> <TableView id="table_task" dataCollection="task"> </TableView> </Window> </Alloy>
function showIndicator(e){ $.table_task.setData([]); $.activityIndicator.show(); console.log("loadData"); task_list = Alloy.createCollection("task"); task_list.fetch(); console.log("data fetched"); setTimeout(function(){ e.source.close(); populateTable(); $.activityIndicator.hide(); }, 6000); } 