Clayton A. Alves 0 Posted Thursday at 10:16 PM (edited) I've made a virtual number keyboard using fmx. Each key is a TButton, inside a TGridLayout. Each TButton updates a TEdit with the corresponding number (from Text property). When I run the application on Android 14, it works ok. When I run this application on Android (8.1.0 Oreo), on a real device, the time from the touch to the response (updating the TEdit) is really slow. If I place the buttons outside the TGridLayout, the performance get's a little better. If I replace the TButtons to TRectangles with TText, the performance get's even better. Is there any property or configuration that I can set to make the TButton version respond faster ? Maybe the issue is related to the animation when the button is clicked, but I can't find a way to turn it off. Below is an image of the app running. This is the device i'm testing: https://www.jarltech.com/sites/default/files/images/product/main/SUN_d2_mini_front_web.png Edited 18 hours ago by Clayton A. Alves Share this post Link to post
Dave Nottage 563 Posted yesterday at 03:48 AM 5 hours ago, Clayton A. Alves said: Is there any property or configuration that I can set to make the TButton version respond faster ? It might help to indicate which version of Delphi. I have similar code that as far as I can remember worked OK on (real) devices with Android 8 or lower (using Delphi 12), however I no longer have access to them. It might also help to create a reproducible test case, in case someone else has such a device. I could try it out on an emulator, though. Share this post Link to post
Clayton A. Alves 0 Posted 19 hours ago 8 hours ago, Dave Nottage said: It might help to indicate which version of Delphi. I'm using Delphi 10.4.2 (Sydney). I've attached the sample test project I'm using. tbutton_touch_test.zip Share this post Link to post