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

simple Alloy layout crashes on Android

$
0
0

I am new to developing with Titanium and have started from a blank alloy app. I only added images and modified the views/index.xml file

<Alloy>
    <Window class="container">
        <ImageView canScale="false" height="auto" image="/images/background.jpg" left="0" size="auto" top="0"/>
        <Button backgroundImage="/images/app-13.png" bottom="50" height="50" left="60" width="50"/>
        <Button backgroundImage="/images/app-14.png" bottom="50" height="50" left="140" width="50"/>
        <Button backgroundImage="/images/app-15.png" bottom="50" height="50" left="220" width="50"/>
        <ImageView height="auto" image="/images/app-18.png" left="20%" top="30%" width="60%"/>
        <ImageView bottom="5" height="auto" width="65%" image="/images/app-17.png"/>
        <Button backgroundImage="/images/app-16.png" bottom="120" center="0" height="40" left="90" width="146"/>
    </Window>
</Alloy>
It works on the iPhone simulator, but android crashes right after the splash screen. Am I missing mandatory attributes?

Viewing all articles
Browse latest Browse all 7655

Trending Articles



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