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

TextArea non editable after resetClass on Android

$
0
0

Hi,

I want to change the class of a TextArea to make visual changes to it. This works great on iOS, but when I do a resetClass on Android I can't edit the text afterwards.

  • Titanium SDK: Titanium 3.5.1 (2015/03/05 10:08 96875c9)
  • Platform: tested on Android 5.0.2 (device), Android 4.3 & 2.3.7 (Emulator)

Simple test case

index.tss

".container": {
    backgroundColor:"white"
}
 
".testOne" : {
    borderWidth : 1,
    borderColor : "Red",
    height : 300,
    width : Ti.UI.FILL
}
 
".testTwo" : {
    borderWidth : 1,
    borderColor : "Blue",
    height : 300,
    width : Ti.UI.FILL
}
index.js
var classOne = true;
function change() {
    if (classOne) {
        $.resetClass($.testArea, 'testTwo');
    } else {
        $.resetClass($.testArea, 'testOne');
    }
 
    classOne = !classOne;
}
 
$.index.open();
index.xml
<Alloy>
    <Window class="container" layout="vertical">
        <TextArea id="testArea" class="testOne"></TextArea>
        <Button width="Ti.UI.SIZE" height="Ti.UI.SIZE" onClick="change">Test</Button>
    </Window>
</Alloy>
Does anyone know if this is a bug or if I'm doing something wrong?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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