I followed this post
https://www.b4x.com/android/forum/threads/padding-doesnt-work-in-b4xfloattextfield.133236/
and added the code to the B4XPage_Created event.
Dim edt1 As EditText = txtUser.TextField
edt1.Padding = Array As Int (20dip, 0dip, 0dip, 0dip)
Dim edt2 As EditText = txtPassword.TextField
edt2.Padding = Array As Int (20dip, 0dip, 0dip, 0dip)
Layout setup:
In the Designer, placed 2 B4XFloatTextFields on a layout: txtUserName, txtPassword.
Set the Hint Text for both: User Name, Password (no leading spaces).
No Padding property value for both.
For txtPassword, the Password Field property is checked.
Observations:
1. When running the app in Debug mode, the Hint Text is shown to the far left and the Padding is not honored, therefore when the cursor is placed in the field, the cursor is in-between the first and second characters. Not good.
2. When text is typed in (both fields), the Hint goes to the top - as it should - and the typed in text is displayed correctly - the Padding is honored.
3. For the txtPassword field, when the "eye" reveal button is clicked, the actual text is displayed hard left in the text field. Not expected. The Padding should still be honored. When the "eye" reveal button is clicked again the text is hidden and the dots appear hard left of the text field.
It seems the Padding, whether as a Property or in code is not fully honored/working.
Can this be fixed, or am I doing something wrong?
Thanx,
Mark Stuart