Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Input field - Android: when many lines of text, Text Preview not showing everything

Discussion in 'UGUI & TextMesh Pro' started by appminded, Nov 27, 2019.

  1. appminded

    appminded

    Joined:
    Nov 27, 2014
    Posts:
    7
    I have a problem with the Input field (I tried both UI and TMP) using line type "multi line newline".

    The "text preview" is the space on top of the keyboard, it works fine at the beginning showing the typed text. Every time the text occupies a new line the text preview increases in size to show that new line. When the text is very long the text preview space is bigger than the screen. At that point there is a problem scrolling the text in the "text preview" to see the beginning or the end. It is slow in scrolling, often unresponsive and almost always it does not reach the end of the text. It makes writing a long message very problematic.

    I experienced the problem on a Samsung Note 4 and Samsung Galaxy S9. I tried to install another keyboard (Gboard) but the problem is the same.

    On iOS this problem does not happen: the text preview does not increase in size based on the length of the text (the box is always the same size) and I can scroll the text with no problems.

    I searched in the forum and I could not find similar questions.

    I am writing an app using a chat where long messages are needed. This is critical problem for me.
    Thanks
     
  2. appminded

    appminded

    Joined:
    Nov 27, 2014
    Posts:
    7
    I found a work around: switching in Android to a floating keyboard (S9 keyboard has that option and also Gboard) solves the problem
     
  3. Yiming075

    Yiming075

    Joined:
    Mar 24, 2017
    Posts:
    29
    How do you call the floating keyboard in Unity?