Quantcast
Viewing all articles
Browse latest Browse all 8068

problem on android with acs

now when i am use ACS with android it bring me data good and every thing is fine but some thing wrong when i scroll the table view that include the data the data remove from table and return while scrolling and this probelm just in android because i had tested this problem in the iphone its good , have an one face this problem before

data = [];
Http = Titanium.Network.createHTTPClient({
    onload : function(e) {
        $.loading.hide();
        food = JSON.parse(this.responseText);
        if (args.id === 'breakfast') {
            _.each(food.response.breakfast, function(rows) {
                correctData = rows.price;
                data.push(Alloy.createController('tableRow', rows).getView());
            });
            $.foodTable.setData(data);
            $.foodTable.setVisible(true);
        }
tss
}
"#foodTable":{
    width: "100%",
    height: Ti.UI.FILL,
    separatorColor: "#E7E6E6",
    top: 50,
    visible:false
}
"#TableRow":{
    height: 110,
    //top: 0,
    backgroundColor: "#ffffff",
    selectedColor:"silver"
}

Viewing all articles
Browse latest Browse all 8068

Trending Articles