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?