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

Close several screens

$
0
0

Hi, i have several screens to configure my app. The main window is index.xml. When i configure the app open the screen config01.xml. This open the screen config02.xml and this open screen config03.xml.

The screens configxx.xml have two buttons. First go back to the previous screen and second go to the next screen. Then in config03.xml i need return to index.xml but i can't open because is already open.

How i can do it??

index.js

var config01 = Alloy.createController('config01').getView();
 
function Configuracion() {
 
    config01.open();
}
config01.js
var config02 = Alloy.createController('config02').getView();
 
function NextScreen() {
 
    config02.open();
}
 
function PreviousScreen() {
 
    $.config01.close();
}
config02.js
var config03 = Alloy.createController('config03').getView();
 
function NextScreen() {
 
    config03.open();
}
 
function PreviousScreen() {
 
    $.config02.close();
}
Now in config03 i need close all configxx screens and go to the index. How i can do it???

I'm working with Alloy and Android.

Thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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