To my dismal, I discovered that the "Android Native Field" widget does not support selection/copy/paste.
I was trying to use it on Android, since the MobileControlCreate, when the device is horizontal, opens a full screen/keyboard window, with I dislike: it does not behave as in iOS.
I may be missing something but what is the use of this widget since, in Android, it behave almost exactly as a normal LC input field?
Thanks
Trevix
What is the use of the Android Native Field widget?
Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller
What is the use of the Android Native Field widget?
Trevix
OSX 15.7 xCode 26.01 LC 10.0.3 RC1 iOS 15> Android 7>
OSX 15.7 xCode 26.01 LC 10.0.3 RC1 iOS 15> Android 7>
Re: What is the use of the Android Native Field widget?
I solved the Android horizontal device full screen input (very annoying), creating a small extension with ClaudeCode.
Now, on a real Android cell, horizontal or vertical, the Mobile field acts in the same way
If someone is interested in having this small extension library, Email me "info $at trevix $dot it".
So I went back to coding with mobileControlCreate, where I can have the "selectAll/copy/paste" window...
- On Android, I could not find a way to hide that focus OS "orange" border of the control, that has nothing to do with my UI. I've been reading that it is impossible to hide.
- Off course, Android native does not support FontNames...
- And there is the bug so that when you tap the field, it places the insertion point in the beginning of previous text, instead of the end.
- No KeyDown on iOS nd Android.
- Very complex to do input filtering and keep the code timing all together
Discouraged...
I may repeat myself, but since I consider buttons and input fields the most important controls in any app and being LC a Multiplatform environment, I don't understand why in LC the only input field, that seems to work fine and is easy to use, is the OSX input field.
But nobody seems to complain about this. Why?
Trevix
Now, on a real Android cell, horizontal or vertical, the Mobile field acts in the same way
If someone is interested in having this small extension library, Email me "info $at trevix $dot it".
So I went back to coding with mobileControlCreate, where I can have the "selectAll/copy/paste" window...
- On Android, I could not find a way to hide that focus OS "orange" border of the control, that has nothing to do with my UI. I've been reading that it is impossible to hide.
- Off course, Android native does not support FontNames...
- And there is the bug so that when you tap the field, it places the insertion point in the beginning of previous text, instead of the end.
- No KeyDown on iOS nd Android.
- Very complex to do input filtering and keep the code timing all together
Discouraged...
I may repeat myself, but since I consider buttons and input fields the most important controls in any app and being LC a Multiplatform environment, I don't understand why in LC the only input field, that seems to work fine and is easy to use, is the OSX input field.
But nobody seems to complain about this. Why?
Trevix
Trevix
OSX 15.7 xCode 26.01 LC 10.0.3 RC1 iOS 15> Android 7>
OSX 15.7 xCode 26.01 LC 10.0.3 RC1 iOS 15> Android 7>
Re: What is the use of the Android Native Field widget? SOLVED
In my app I needed consistent input field on all mobile platform (iOS and Android) and on the LC IDE for reference.
I needed rounded input field, with colored focus border, custom font, copy/paste action panel, custom text max length and input filtering.
So I started solving some problems on the Android native Field Widget and renamed it "Android native Field Plus".
I ended with a duplicable input group ("FldInputGrp1" end "FldInputGrp2" in the demo stack) that uses:
- Android native Field Plus on Android
- NobileControlCreate on iOS
- IDE Field in OSX development
The fields are, in my opinion, pretty consistent in the 3 platform, fields rotate correctly on mobile and there are a few add ons (input filter, transparent background, Pan to give room to the keyboard, etc.
To see the demo stack in opera, first copy the widget and the controlunfocus extension to your "My Livecode" folder on the Mac, then launch LC 10.0.5RC1. For info, read the LC dictionary and my comments.
Feel free to improve my work and share.
Regards.
Trevix
PS how verbose can be Claude code...!!
I needed rounded input field, with colored focus border, custom font, copy/paste action panel, custom text max length and input filtering.
So I started solving some problems on the Android native Field Widget and renamed it "Android native Field Plus".
I ended with a duplicable input group ("FldInputGrp1" end "FldInputGrp2" in the demo stack) that uses:
- Android native Field Plus on Android
- NobileControlCreate on iOS
- IDE Field in OSX development
The fields are, in my opinion, pretty consistent in the 3 platform, fields rotate correctly on mobile and there are a few add ons (input filter, transparent background, Pan to give room to the keyboard, etc.
To see the demo stack in opera, first copy the widget and the controlunfocus extension to your "My Livecode" folder on the Mac, then launch LC 10.0.5RC1. For info, read the LC dictionary and my comments.
Feel free to improve my work and share.
Regards.
Trevix
PS how verbose can be Claude code...!!
- Attachments
-
- com.trevix.library.android.controlunfocus.1.0.0.zip
- Extension that handle focus out for Android widgets
- (7.27 KiB) Downloaded 3 times
-
- com.livecode.widget.native.android.fieldplus.1.0.0.zip
- New modified Android Native Field
- (40.85 KiB) Downloaded 2 times
-
- MultiPlatformInputField.zip
- Test stack
- (122.36 KiB) Downloaded 2 times
Trevix
OSX 15.7 xCode 26.01 LC 10.0.3 RC1 iOS 15> Android 7>
OSX 15.7 xCode 26.01 LC 10.0.3 RC1 iOS 15> Android 7>