-
Notifications
You must be signed in to change notification settings - Fork 59
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
java.lang.IllegalArgumentException: width and height must be > 0 - vers.1.4.2 #16
Comments
Please pardon me for responding so late. Can you show me the whole XML layout file? The width and height of the widget may be up to the parent element(Like LinearLayout, RelateLayout....). |
Getting this same error in 5.1. Same usage as example, I think I know where to fix. I can make a PR this weekend with a fix. It happens onSizeChanged . Also this only happens with a headless emulator. |
Fatal Exception: java.lang.IllegalArgumentException: width and height must be > 0 |
@nitinbhanderi35 Can you show the java code and layout here, so that can help me diagnose this issue. |
===> issue android os 9 <com.rtugeek.android.colorseekbar.ColorSeekBar |
What's the parent layout of ColorSeekBar |
I tried using version 1.4.3, but not resolving it. More recent version I can compile against is 1.4.2, that gives me this error. Switching back to 1.2.2, everything is fine. I make plain usage in XML:
<com.rtugeek.android.colorseekbar.ColorSeekBar
android:id="@+id/colorSliderStop"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/stopLabel"
app:colorSeeds="@array/t16_color_slider"
/>
The text was updated successfully, but these errors were encountered: