0

I found this problem reproducible on many apps e.g. Twitter for Android. If we have this long link https://example.com/test/path/123456789012345678901234567890, when we pasting it into an EditText, it will look like this:

Link without space prefix

But if we insert a space before this link, line wrap for EditText will refuse to work like this:

Link with space prefix

Sometime it also happens on TextView but can be fixed by setting MovementMethod to BaseMovementMethod.

Are there any option for EditText or workaround to this?

mariotaku
  • 693
  • 1
  • 10
  • 26

1 Answers1

1

Have you tried

android:inputType="textMultiLine"

or check this solution of Fllo Link

Community
  • 1
  • 1
Melchizedek
  • 1,057
  • 17
  • 29