Android Question EditText Multiline ENTER (NewLine)

Discussion in 'Android Questions' started by rQb, Apr 14, 2015.

  1. rQb

    rQb Member Licensed User


    Have an EditText view that is set to multiline by way of SingleLine = False.

    When the input type is set to TEXT, pressing the ENTER button takes the cursor to the next line. When the input type is set to NUMBERS, pressing the ENTER button does nothing.

    Is there a way the ENTER can work in NUMBER input type?

    I want the ability to type in a series of numbers with the newline as the separator.

    Thanks in advance

  2. lemonisdead

    lemonisdead Well-Known Member Licensed User


    You could take a look at the IME Library.
    Because I have never seen one number multi lined, I guess the EditText must be a text field, only the keyboard layout should be managed
    Last edited: Apr 14, 2015
  3. Erel

    Erel Administrator Staff Member Licensed User

    Specifically check IME HandleAction event.
    lemonisdead likes this.
  4. rQb

    rQb Member Licensed User

    Thanks, will look into it.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice