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

Used wrong styleable attribute for descriptionTextSize. #2

Closed
kishannareshpal opened this issue Apr 11, 2020 · 0 comments
Closed

Used wrong styleable attribute for descriptionTextSize. #2

kishannareshpal opened this issue Apr 11, 2020 · 0 comments

Comments

@kishannareshpal
Copy link
Owner

kishannareshpal commented Apr 11, 2020

this.descriptionTextSize = ta.getDimensionPixelSize(R.styleable.StateView_stateDescriptionTextColor, NO_VALUE);

Should've reference R.styleable.StateView_stateDescriptionTextSize instead.

Hence it crashes java.lang.UnsupportedOperationException: Can't convert value at index 15 to dimension: type=0x1d

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

1 participant