Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Workaround: How to make a TextArea un-editable for Android

This may be painfully obvious to the more experienced developers here, but for me this has been a thorn in my side for a couple of weeks now.

There is a known issue with

editable:false

working on Android. The keyboard would still pop up when the text area was focused and you could alter the text (not permanently, but still annoying).

Labels work fine if all you have is a little text, but I had paragraphs. Believe me, I tried dozens of things to circumvent this bug. The only thing I found that worked was this ("description" is my TextArea var):

description.addEventListener('focus', function()
{
    description.blur(); 
});
— asked August 12th 2010 by Chris Dotson
  • android
  • bug
  • textarea
  • workaround
0 Comments

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.