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

Checkbox missing value #55

Closed
tntn001 opened this issue Sep 29, 2017 · 4 comments
Closed

Checkbox missing value #55

tntn001 opened this issue Sep 29, 2017 · 4 comments

Comments

@tntn001
Copy link

tntn001 commented Sep 29, 2017

I have added checkbox in placeholderview. When i scroll, checkbox is reset to first value.

@janishar
Copy link
Owner

@tntn001 You have to initialize the values of the checkbox in OnResolve annotated method. The view is recycled when it crosses the screen and then is redrawn. When it is redrawn then it calls the method annotated with OnResolve of the View class.

@orikl84
Copy link

orikl84 commented Jan 17, 2018

@janishar @amitshekhariitbhu How do I save the state of the view before it is recycled? for ex., if the item contains an EditText

@janishar
Copy link
Owner

@orikl84 Inflate the view item with a data object. Keep updating the pre filled text of that data object using TextChangeListener on the EditText.

@janishar
Copy link
Owner

@orikl84 refer to below link for solution:
https://github.com/janishar/PlaceHolderView/releases/tag/0.7.3

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

3 participants