I have to download a remote image and show it in a ImageView. In iOS works prefectly but in Android doesn't work. The image size is 190x190. This is my code:
View:
<ScrollView id="scrollView" showVerticalScrollIndicator="true"> <Label id="titleLabel"></Label> <ImageView id="qr"></ImageView> <View id="codigoView"> <Label id="codigoLabel"></Label> <Label id="numeroLabel"></Label> </View> <Button id="condicionesButton" onClick="condicionesAction"></Button> <Button id="localizacionButton" onClick="localizacionAction"></Button> <Button id="emailButton" onClick="emailAction"></Button> </ScrollView>Style:
"#qr":{ top: 5, width: 190, height: 190 }Controller:
var qrString = args.get('qrcode'); $.qr.image = Alloy.Globals.qr_url + qrString; $.qr.addEventListener('load', function(e){ alert('Picture loaded'); });This alert does never showed.