I am facing a very strange issue in my Titanium Studio 3.2. I try to develop an Alloy application for Android 4.1). I created a TableLayout with a Textfield in it. When I try the program on my device (Samsung Galaxy Ace 2), I cannot enter any text. As soon as I click on the textfield the keyboard shows up, but i cannot enter any text. I noticed that I am able to enter text, if I type inmediately after clicking on the textfield. It seems like it is possible to enter text within half a second after clicking on the textfield. After this short period of time it is not possible anymore. In my logs I can see the following messages, which explain this issue:
[ERROR] : SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[ERROR] : SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
[WARN] : IInputConnectionWrapper: getSelectedText on inactive InputConnection
[WARN] : IInputConnectionWrapper: setComposingText on inactive InputConnection
If I add a textfield in a sample program I can enter text normally.
Here is my view:
<Alloy> <Tab id="searchTab"> <Window class="container"> <TableView id="form" width="100%"> <TableViewRow width="100%"> <Label class="description" text="Ort: "></Label> <TextField id="location"></TextField> </TableViewRow> [...]the tss file:
[...] "#location": { left:100, width:"70%", color: '#336699', editable:true, enabled:true, }, [...]Does anybody have an explanation why the InputConnection stays inactive? Any help would be appreciated.