Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android - ImageView doesn't show a remote image

$
0
0

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.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>