Hello,
I developed an application that implements a password input feature, in which the user should be able to temporarily display the password.
I defined the input fields in a rectangle whose visibility I can control. I added a TPasswordEditButton to the TEdit field (on Android, I use a TEditButton and implement the MouseUp and MouseDown event processing). This approach works, but I was wondering if it was possible to achieve a similar result with TDialogServiceASync.
On Windows, the construction of the dialog elements is done in TDialogBuilder.InputQuery in FMX.DialogHelper. I modified this function to add a TPasswordEditButton component to the Edit field when the input is identified as a password. It works very well.
If I understand correctly, in Android, the dialog construction isn't done in this function but in FMXDialogHelpers.java. I'm not an Android Java expert, but I have a feeling there might be a way to modify this function to use a TextInputEditText field, which seems to have a feature to show/hide the password. However, I'm not sure how feasible this modification would be.
Do you have any ideas on this?