Possible Duplicate:
Disable EditText blinking cursor
I have 2 editText fields in my activity with some text in it:
EditText nameText=(EditText) findViewById(R.id.update_name_text);
nameText.setText(Info.getName());
EditText phone=(EditText) findViewById(R.id.phone_number);
phone.setText(Info.getPhoneNo());
When I run the app on my device and tap on the nameText
field, a cursor and a keyboard appear. However, when I hide the keyboard, the keyboard goes away but the cursor stays. How can I make the cursor invisible as well.
When I press enter from nameText
, the cursor goes to the phone
field and the keyboard is still visible.This is fine. But when I hide the keyboard or press enter from the phone
field, the keyboard disappears but the cursor stays.
Is there any way (other than using setOnEditorActionListener
) to make the cursor invisible as well in the above situations?