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

Dynamic text on Activity indicator

$
0
0

is it possible to dynamically change the message in an activity indicator or do i need to add 2 on the same controller/view? right now, the 2nd AI message in the activation function is showing the first message.

coupon.xml

<Alloy>
    <Window id="window" class="container">
        <ActivityIndicator id="activityIndicator"/>
    </Window>
</Alloy>
coupon.js
if (uid > 0) {
    $.activityIndicator.message = L("loading_coupons_activity");
    $.activityIndicator.show();
}
.
.
function deactivation(){
    // doesnt emtpy -> $.activityIndicator.message = "";    
    $.activityIndicator.message = L("deactivating_coupons_activity"); //shows the loading_coupons_activity string
    $.activityIndicator.show();
}

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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