I have an Edit Box object with the Multiline option disabled, and it works fine in Fusion but when I export to Android, multiple lines can be written in the Edit Box. why?

Android Edit Box Multiline Disabled - NOT WORKING
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
It seems that Android's edit boxes (edit text) have multi-line support enabled by default.
But there appear to be some attributes to limit this.
Please login to see this link.
Please login to see this attachment.
Please login to see this attachment.
Could it be made so that when multi-line is disabled there is only 1 line?
-
As a solution I made this code so that you cannot write more than x characters in an edit box
Please login to see this attachment.
-
Mm the object edit when no multiline is set, it is set as single line, as you may see in the code
field.setSingleLine();
vert_gravity = Gravity.CENTER_VERTICAL;
Not sure, can you elaborate a little on this, also mention what device is the one used to test this. -
Please login to see this attachment.
Well this is the result when I export to Android, I can continue writing infinitely, but if I export to Windows it works fine.
Tested on
Xiaomi Redmi 12 - Xiaomi HyperOs 2.0.4.0.VMXEUXM - Android 15 AP3A.240905.015.A2Could it be that HyperOS is affecting the editbox?
-
You are expecting the same behavior from Windows and Android, which is not possible. Please check
As a solution I made this code so that you cannot write more than x characters in an edit box
Please login to see this attachment.
-
You are expecting the same behavior from Windows and Android, which is not possible. Please check
I think you're not understanding.
That event code is the solution to having a one-line edit box, because the edit box in Android is ALWAYS multi-line.
Simply the disabled multiline on android doesn't work for me
By the way, chatgpt told me that:
the method setSingleLine() in Android is deprecated as of API level 16 (Android 4.1, Jelly Bean).
Please login to see this attachment.
-
Quote
the method setSingleLine() in Android is deprecated as of API level 16 (Android 4.1, Jelly Bean).
no recollection and even android studio doesn't show me this.
i will make a different approach next week.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!