I have a json array of about 1000 objects like this:
“20701”: {
“name”: “Hvid”,
“colorcode”: “01”,
“package”: “1000”,
“value”: “0”,
“color”: “#f7f7f6”,
“type”: “Midi”
},
“20101”: {
“name”: “Hvid”,
“colorcode”: “01”,
“package”: “3000”,
“value”: “0”,
“color”: “#f7f7f6”,
“type”: “Midi”
},
“20501”: {
“name”: “Hvid”,
“colorcode”: “01”,
“package”: “6000”,
“value”: “0”,
“color”: “#f7f7f6”,
“type”: “Midi”
},
“50101”: {
“name”: “Hvid”,
“colorcode”: “01”,
“package”: “2000”,
“value”: “0”,
“color”: “#f7f7f6”,
“type”: “Mini”
}
I loop through each item in the array (With foreach), and for each object where package is 1000 i create a button with clone.
In total it is about 60 buttons.
On iOS it takes about 7 seconds. but on Android it takes about 1 min 30 sec.
Any body knows why this is so slow on android.