Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change mask in code. #40

Open
mobilestar1 opened this issue Jan 24, 2017 · 4 comments
Open

How to change mask in code. #40

mobilestar1 opened this issue Jan 24, 2017 · 4 comments

Comments

@mobilestar1
Copy link

I implemented this library and it works perfectly.
Btw I want to add feature "show/hide pin"

So my guess is I need to change mask string in code.

How can I do this?
Thanks.

@eGorets
Copy link

eGorets commented Feb 4, 2017

>     app:mask=""

@adityaladwa
Copy link

adityaladwa commented May 16, 2017

How to change it in code not xml. Also using databinding library as setting as
app:mask="@{model.show ? `` : *}" throws an error. Can you make create getters and setters for mask so that we can do it in code?

@adityaladwa
Copy link

@eGorets Is there a way to change in code?

@zfoltin
Copy link

zfoltin commented May 17, 2017

There isn't a setter in code for mask at the moment. As a workaround you can have two PinEntryViews in your layout, one with a mask and the other without, and flip their visibility when you toggle the show/hide pin button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants