1

TextView with a cursor

view story
linux-howto

http://stackoverflow.com – I'm trying to create a custom TextView which should have a cursor.I don't want to use EditText since the input should not be provided via the android keyboard, moreover it should look like a TextView. I've found that the TextView Interface has a support for a cursor, but I was unable to make it show. here is what I've tried: added android:textCursorDrawable="@null" called textView.setCursorVisible(true); textView.setSelected(true); textView.forceLayout(); textView.moveCursorToVisibleOffset(); when I added android:editable="true" and called textView.moveCursorToVisibleOffset(); NullPo (HowTos)