I want to change the corners of the button. To do this, I pass on the shape.xml file (android: background = "@ drawable / shape") as a background. But I get the error "Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed". I can not decide, please help. Here is the contents of the shape.xml file:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:padding="10dp"> <solid android:color="@color/colorPrimary"/> <corners android:radius="3dp" android:bottomRightRadius="0dp" android:bottomLeftRadius="0dp" android:topLeftRadius="5dp" android:topRightRadius="5dp"/> </shape>
android-studiolabel is used for questions related only to the IDE itself, and not to what you create there. Therefore, you would be advised to avoid using the wrong tags, because here it is not welcome :)) - Andrew Goroshko