0

I'm making an application that will store a page of text. This application should read highlighted text shown on the screen and pronounce it for the user. The problem is that when I disable the EditText from editing, I can't set highlight in the EditText anymore.

I use this code for disabling:

contentBox.setKeyListener(null);

And this code for setting highlight:

contentBox.setSelection(0,findNextLineIndex(0));

Any idea? Thanks.

dda
  • 6,030
  • 2
  • 25
  • 34

1 Answers1

0

I think you can use android:editable="false" to disable it; then u can get its focus :) cheers :)

Manoj Kumar
  • 1,510
  • 3
  • 20
  • 40