Java Code Examples for android.widget.TextView.clearFocus()

The following are Jave code examples for showing how to use clearFocus() of the android.widget.TextView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: TodoRealm   File: TaskDetailFragment.java   View Source Code Vote up 5 votes
@OnEditorAction(R.id.task_detail_note)
boolean onEditorAction(TextView view, int actionId, KeyEvent event) {
    if (actionId == EditorInfo.IME_ACTION_DONE) {
        KeyboardUtils.hideKeyboard(view.getContext(), view);
        view.clearFocus();
        presenter.onNoteEditorActionDone(view.getText().toString());
        return true;
    }
    return false;
}