ciginfo Well-Known Member Licensed User Longtime User Jun 29, 2021 #1 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 7.6 KB · Views: 476
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
Sandman Expert Licensed User Longtime User Jun 29, 2021 #2 Or perhaps... B4X: Copy 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
Or perhaps... B4X: Copy Sub Globals Private EditText1 As EditText Private IsPW As Boolean = False End Sub Sub Button1_Click EditText1.PasswordMode = IsPW IsPW = Not(IsPW) End Sub
Peter Simpson Expert Licensed User Longtime User Jun 29, 2021 #3 Sandman said: Or perhaps... B4X: Copy Sub Globals Private EditText1 As EditText Private IsPW As Boolean = False End Sub Sub Button1_Click EditText1.PasswordMode = IsPW IsPW = Not(IsPW) End Sub Click to expand... Now why didn't I think of that whilst typing away on my phone screen, Simplicity is the key... Nice one Enter @Sandman Upvote 0
Sandman said: Or perhaps... B4X: Copy Sub Globals Private EditText1 As EditText Private IsPW As Boolean = False End Sub Sub Button1_Click EditText1.PasswordMode = IsPW IsPW = Not(IsPW) End Sub Click to expand... Now why didn't I think of that whilst typing away on my phone screen, Simplicity is the key... Nice one Enter @Sandman
Sandman Expert Licensed User Longtime User Jun 29, 2021 #4 And, depending on context, this might work fine too... B4X: Copy Sub Globals Private EditText1 As EditText End Sub Sub Button1_Click EditText1.PasswordMode = Not(EditText1.PasswordMode) End Sub Upvote 0
And, depending on context, this might work fine too... B4X: Copy Sub Globals Private EditText1 As EditText End Sub Sub Button1_Click EditText1.PasswordMode = Not(EditText1.PasswordMode) End Sub
Erel B4X founder Staff member Licensed User Longtime User Jun 30, 2021 #5 Correct answer: use B4XFloatTextField (XUI Views). Upvote 0
ciginfo Well-Known Member Licensed User Longtime User Jun 30, 2021 #6 Erel said: Correct answer: use B4XFloatTextField (XUI Views). Click to expand... I tried but didn't succeed. I did not find a good tutorial for B4XFloatTextField Upvote 0
Erel said: Correct answer: use B4XFloatTextField (XUI Views). Click to expand... I tried but didn't succeed. I did not find a good tutorial for B4XFloatTextField
ciginfo Well-Known Member Licensed User Longtime User Jun 30, 2021 #7 Sandman said: And, depending on context, this might work fine too... B4X: Copy Sub Globals Private EditText1 As EditText End Sub Sub Button1_Click EditText1.PasswordMode = Not(EditText1.PasswordMode) End Sub Click to expand... ?? Thank you Upvote 0
Sandman said: And, depending on context, this might work fine too... B4X: Copy Sub Globals Private EditText1 As EditText End Sub Sub Button1_Click EditText1.PasswordMode = Not(EditText1.PasswordMode) End Sub Click to expand... ?? Thank you
Erel B4X founder Staff member Licensed User Longtime User Jun 30, 2021 #8 ciginfo said: I tried but didn't succeed. I did not find a good tutorial for B4XFloatTextField Click to expand... That's too bad. Tutorial: 1. Add a reference to XUI Views. 2. Add the view with the designer: Add View - CustomView - B4XFloatTextField Upvote 0
ciginfo said: I tried but didn't succeed. I did not find a good tutorial for B4XFloatTextField Click to expand... That's too bad. Tutorial: 1. Add a reference to XUI Views. 2. Add the view with the designer: Add View - CustomView - B4XFloatTextField
ciginfo Well-Known Member Licensed User Longtime User Jun 30, 2021 #9 Erel said: That's too bad. Tutorial: 1. Add a reference to XUI Views. 2. Add the view with the designer: Add View - CustomView - B4XFloatTextField Click to expand... 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
Erel said: That's too bad. Tutorial: 1. Add a reference to XUI Views. 2. Add the view with the designer: Add View - CustomView - B4XFloatTextField Click to expand... Yes, but all my edittext, labels etc.. are made with code because these views are added in a scrollview. I don't use designer
josejad Expert Licensed User Longtime User Jun 30, 2021 #10 I think it's better to use a xCustomListView instead of a scrollview, and add the layout made with the designer. Upvote 0
I think it's better to use a xCustomListView instead of a scrollview, and add the layout made with the designer.