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

redraw whenever content changes #2

Merged
merged 1 commit into from Apr 2, 2016
Merged

Conversation

TomHennen
Copy link
Contributor

I believe that TriangleLabelView needs to explicitly invalidate and request a new layout whenever content changes.

In version 1.0.0 it does not do this and it can result in this problem if a user scrolls back and forth (the numbers in the center of each square should match the number in the TriangleLabelView but they do not)

2016-03-31 19 09 19

In this PR every time a property of the view changes the content is invalidated and a new layout is requested. (See https://developer.android.com/training/custom-views/create-view.html#addprop for more information)

Thanks for the great library!

@shts
Copy link
Owner

shts commented Apr 2, 2016

@TomHennen LGTM!!!!

@shts
Copy link
Owner

shts commented Apr 2, 2016

@TomHennen update version 1.1.0

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

Successfully merging this pull request may close these issues.

None yet

2 participants