Open borjaruiz opened 9 years ago
I am defining a switch in a layout this way:
<com.gc.materialdesign.views.Switch android:id="@+id/switchView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#1E88E5" materialdesign:check="true" />
And I get this error: No resource identifier found for attribute 'check' in package com.mypackage...
I have also put this line on the first layout: xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
I have no problem with rectangleButton. Where am I wrong? Thanks in advance
You should use checked instead of check.
Thanks! That was! The "how to use" instructions are wrong!!
Yes,I'll pull new request to author.
What attributes can be set in the XML of Switch?
I am defining a switch in a layout this way:
And I get this error: No resource identifier found for attribute 'check' in package com.mypackage...
I have also put this line on the first layout: xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
I have no problem with rectangleButton. Where am I wrong? Thanks in advance