Android Question Make password visible

ciginfo

Well-Known Member
Licensed User
Longtime User
Hi,
On EditText with PasswordMode, is it possible to make visible the password by clicking on an icon (eye) like the attached image ?
Thank you
 

Attachments

  • mdp.jpg
    mdp.jpg
    7.6 KB · Views: 155

Sandman

Expert
Licensed User
Longtime User
Or perhaps...

B4X:
Sub Globals
    Private EditText1 As EditText
    Private IsPW As Boolean = False
End Sub

Sub Button1_Click
    EditText1.PasswordMode = IsPW
    IsPW = Not(IsPW)
End Sub
 
Upvote 0

ciginfo

Well-Known Member
Licensed User
Longtime User
That's too bad.

Tutorial:

1. Add a reference to XUI Views.
2. Add the view with the designer: Add View - CustomView - B4XFloatTextField
Yes, but all my edittext, labels etc.. are made with code because these views are added in a scrollview. I don't use designer
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
I think it's better to use a xCustomListView instead of a scrollview, and add the layout made with the designer.
 
Upvote 0
Top