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 set hint in input layout programmatically? #12

Open
khizar-lango opened this issue Sep 8, 2017 · 4 comments
Open

how to set hint in input layout programmatically? #12

khizar-lango opened this issue Sep 8, 2017 · 4 comments

Comments

@khizar-lango
Copy link

how to set hint in input layout pro programmatically
i need to set hint in two different fragments using same layout how can i do this. Please guide thanks

@qiugang
Copy link
Owner

qiugang commented Sep 10, 2017

you can extend a method in EditTag.class to get the private variable "editText", then set the hint.

@khizar-lango
Copy link
Author

Ok will try thanks

@khizarhayat
Copy link

khizarhayat commented Sep 15, 2017

@qiugang how can we access private member in extended class ( child class ). EditTag class should have getter function for editText

@Eklett
Copy link

Eklett commented Oct 20, 2017

set id to MEditText in xml and findviewbyid in activity, then set the hint

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