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

Cannot show button image on a window using alloy

$
0
0

Hello,

I'm trying to use an image with a button, the problem is that after i compile and run the app on the emulator or a real device i cannot make the button display the image. i have added the image to the assets folder and even created a /images folder and tried that without any use.

I'm using the latest SDK.

index.xml

<Alloy>
    <Window class="main">
 
        <Button id="connectBtn" onClick="viewLogin"></Button>
 
    </Window>
</Alloy>
index.tss
"#connectBtn":{
    title:"Connect",
    top:'380dp',
    backgroundImage:'images/connect.png',
 
    height:'250dp',
    width:'250dp',
    color:"black",
    font: {fontSize:'40dp'},
 
},

everything used to work great with classic before using alloy.

Regards


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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