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
Setting an action to the button rectangle crashes the app! #104
Comments
If you want to get any help on error - paste your error message |
I don't get an error, the app would just crash on the device. The button works when nothing is set for it to do, but when I set an action to it and run it on device, the app would just crash.. |
Hi, Can you paste your stacktrace error? |
Hello these are the errors in my Logcat java.lang.RuntimeException: Unable to start activity ComponentInfo{infinitetech.chemequator/infinitetech.chemequator.MainActivity}: java.lang.ClassCastException: com.gc.materialdesign.views.ButtonRectangle cannot be cast to android.widget.Button |
Sorry I figured it out :P Had to import the view and then set the button to com....Button rectangle instead of the usual Button. |
I was believing in you :) P.S.: if there is no error now, you can close issue |
I have just directly copied the button from your code and replaced a button on my app with it with the button id. But now the app crashes, please let me know what needs to be done..
The text was updated successfully, but these errors were encountered: