title: edittext is focused but cursor is not visible
body: <p>i want to enter a text in an edittext and when i click on enter key of keyboard(physical/soft)the text should be added to list and edittext will be cleared to make next entry.but here the edittext is getting cleared but it loses the focus. But edittext.isFocused() function returns true. Cursor is not visible in the edittext.code is pasted below.please help me.</p>
  
  <pre><code> edittext.setOnEditorActionListener(new OnEditorActionListener() {
  
          @Override
          public boolean onEditorAction(TextView tv, int actionId,
                  KeyEvent event) {
  
              if ((event != null)
                      &amp;&amp; (event.getAction() != KeyEvent.ACTION_DOWN))
                  return false;
  
              if (actionId == EditorInfo.IME_ACTION_NEXT
                      || event.getKeyCode() == KeyEvent.KEYCODE_ENTER
                      || actionId == EditorInfo.IME_NULL) {
  
                  if (!TextUtils.isEmpty(edittext.getText().toString()
                          .trim())) {
                      makeFreeFormTextItem((edittext.getText().toString()
                              .trim()));
                      edittext.setText("");
                      edittext.requestFocus();
                      edittext.setCursorVisible(true);
                      return true;
              }
                 }
              return false;
          }
      });
  </code></pre>