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

When I use the Switch,width and height must be > 0 #397

Open
LoveCoding2 opened this issue Dec 31, 2016 · 0 comments
Open

When I use the Switch,width and height must be > 0 #397

LoveCoding2 opened this issue Dec 31, 2016 · 0 comments

Comments

@LoveCoding2
Copy link

java.lang.IllegalArgumentException: width and height must be > 0   at android.graphics.Bitmap.createBitmap(Bitmap.java:877)   at android.graphics.Bitmap.createBitmap(Bitmap.java:856)   at android.graphics.Bitmap.createBitmap(Bitmap.java:823)   at com.gc.materialdesign.views.Switch.onDraw_Original(Switch.java:128)   at com.gc.materialdesign.views.Switch.onDraw(Switch.java:-1)   at android.view.View.draw(View.java:17068)   at android.view.View.draw(View.java:16976)   at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)   at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)   at android.view.ViewGroup.drawChild(ViewGroup.java:3764)   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)   at android.view.View.draw(View.java:16974)   at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)   at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)   at android.view.ViewGroup.drawChild(ViewGroup.java:3764)   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)   at android.view.View.draw(View.java:16974)   at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)   at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)   at android.view.ViewGroup.drawChild(ViewGroup.java:3764)   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)   at android.view.View.draw(View.java:16974)   at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)   at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)   at android.view.ViewGroup.drawChild(ViewGroup.java:3764)   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)   at android.view.View.draw(View.java:17071)   at com.android.internal.widget.ActionBarOverlayLayout.draw(ActionBarOverlayLayout.java:500)   at android.view.View.draw(View.java:16976)   at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)   at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)   at android.view.ViewGroup.drawChild(ViewGroup.java:3764)   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)   at android.view.View.draw(View.java:17071)

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