MaterialDesignLibrary
MaterialDesignLibrary copied to clipboard
Android Studio Preview Error
i got error in preview window while i am writing xml.
<com.gc.materialdesign.views.ButtonRectangle android:layout_width="113dp" android:layout_height="45dp" android:text="OK"/>
java.lang.NoSuchFieldError: shape_bacground
at com.gc.materialdesign.views.Button.setBackgroundColor(Button.java:166)
at com.gc.materialdesign.views.Button.setDefaultProperties(Button.java:50)
at com.gc.materialdesign.views.ButtonRectangle.setDefaultProperties(ButtonRectangle.java:35)
at com.gc.materialdesign.views.Button.
Hmm well first it seems like you spelt "shape_bacground " incorrectly. Should be "shape_background
This could be the cause of the other errors.
I haven't never made the drawable named "shape_bacground". I found "shape_bacground" in the library. (Button.java:166)
Hmm, can you add a picture of the error that comes from the console.
<com.gc.materialdesign.views.ProgressBarDeterminate
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/primary"
android:progress="10"/>
same issue