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

Titanium mobile app for andriod keeps freezing

$
0
0

Developing a login page for an app and I keep having an error where my app seems to partially freeze. I have 2 TextFields and 1 login button but after the first textfield is deselected it begins to kind of lag/freeze (not really sure). At no point can you click the button and have it respond at all, also once the second textlabel is selected, at least on andriod tablet, you cannot select the first again. I've tried this both on an andriod tablet and on the web and recieve similar errors so I'm guessing it's just a silly coding error, hopefully, I'm fairly new to Titanium so I wouldnt be surprised. Two files listed below: index.xml:

<Alloy>
    <Window id="index" class="container" backgroundColor="#49b049">
         <TextField id="email" value="Email" backgroundColor="White" 
            clearOnEdit="true" borderStyle="Titanium.UI.INPUT_BORDERSTYLE_ROUNDED"
            color="#336699" top="53%" width="55%" height="5%" />
         <TextField id="password" value="Password" backgroundColor="White" clearOnEdit="true" borderStyle="Titanium.UI.INPUT_BORDERSTYLE_ROUNDED" 
            color="#336699" top="61%" width="55%" height="5%" />
         <Button id="button"  onCLick="LoginClicked" title="Login" backgroundColor="#119011"
            top="69%" width="55%" height="5%" />
          <ImageView id="hand" image="/292-HighFive_60@2x.png" top="2%" width="35%"/>
          <ImageView id="HighFivesWords" image="/HighFivesWords.png" top="12%" width="75%"/>
          <Label id="SignUp" color="white" text="Sign Up For High Fives" top="95%" textAlign="Ti.UI.TEXT_ALIGNMENT_CENTER"
             width="Ti.UI.SIZE" height="Ti.UI.SIZE" />
 
    </Window>
</Alloy>
index.js:
function LoginClicked(e){
    Titanium.API.info("You clicked the button");
 
};
 
$.index.open();

Viewing all articles
Browse latest Browse all 8068

Trending Articles