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

Switch to android causes chaos! Well, not really, but the app no longer works in android whereas it was fine in ios.

$
0
0

I am looking for general common issues.

I am unsure of how to proceed.

Here are some code snippets to help, they are just fine in how they are formed, they simply don't work. :-)

registrationChooseIndustry.js

var args = arguments[0] || {};
 
//button event listeners
$.choice1.addEventListener( 'click', function(){
    Alloy.Globals.state.setIndustry( 'other' );
    Ti.App.fireEvent( 'app:registration:industry:other' );
} );
 
//button over states and their reverse values
$.choice1.addEventListener( 'touchstart', function(){
    $.choice1Image.image = "/images/tablet/1_other_press_icon_tablet.png";
} );
$.choice1.addEventListener( 'touchend', function(){
    $.choice1Image.image = "/images/tablet/1_other_icon_tablet.png";
} );
and registrationChooseIndustry.xml
<Alloy>
    <View formFactor="handheld" class="registrationChooseIndustryContainer" id="registrationChooseIndustryContainer">
            <View id="choice1">
                <ImageView id="choice1Image" formFactor="handheld" image="/images/handheld/1_harley_icon_handheld.png"></ImageView>
                <ImageView id="choice1Image" formFactor="tablet" image="/images/tablet/1_harley_icon_tablet.png"></ImageView>
                <Label id="choice1Label" class="row1Label">Harley-Davidson</Label>
            </View>
    </View>
</Alloy>

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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