I cannot figure out why my Android Studio is giving me this error when I am trying to make my FrameLayout
have rounded edges. This is the exact error it gives me "Error:(162) No resource identifier found for attribute 'corners' in package 'android'", I have rebuilt my project to see if that was the problem but fortunately it wasn't, can someone explain. I am running version 0.8 Android Studio and my Lowest SDK Version is API 13.
The XML layout file that gives me the error
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ffffff"/>
<corners android:radius="10dip"/>
<stroke android:color="#000000" android:width="1dp"/>
</shape>
Update
I no longer get the 'corners' attribute error.
I recreated the file by deleting it and creating a new XML
file, but when I try to apply this layout to my FrameLayout I get this error "Error:(126, 15) error: method setBackground in class View cannot be applied to given types;
required: Drawable
found: int
reason: actual argument int cannot be converted to Drawable by method invocation conversion"