Remove focus from EditView

I have EditText in which the user inputs some name then he clicks a button and I want the EditText to stop being focused and if the user taps with his finger I want it to be focusable again. I've tried all things on first page of Google results but nothing worked. Does anyone have some short solution, for example of one line. I can't believe Xamarin team didn't create this so important feature of removing focus from an element.

Best Answers

  • LjusnanLjusnan DE ✭✭✭
    Accepted Answer

    The answer is simple, you have to give another control the focus.

  • JairBarzolaJairBarzola US ✭✭
    edited November 2017 Accepted Answer

    Try to put this android:focusableInTouchMode="true"

Answers

  • LjusnanLjusnan DEMember ✭✭✭
    Accepted Answer

    The answer is simple, you have to give another control the focus.

  • JairBarzolaJairBarzola USMember ✭✭
    edited November 2017 Accepted Answer

    Try to put this android:focusableInTouchMode="true"

Sign In or Register to comment.