Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Android imageview width percentage

$
0
0

App Type: Android SDK: 3.2.0 Device: Galaxy S3 i9300 Version: Android CM 4.3.1 Host: OSX 10.9.1 Alloy

Just added imageview to xml:

<Alloy>
    <Window>
        <ImageView image="/images/logo.png" id="logo"></ImageView>      
    </Window>
</Alloy>
Then tried to change the width of image to 50% on tss
"#logo": {
    width: "50%"
}
It's perfect on iOS but Android is ignoring the width, any clues?

ps: if I put the height, it works but I can't go trough this way, the parent size will change from device to device


Viewing all articles
Browse latest Browse all 7655

Trending Articles



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