textstorke를 만드려고
커스텀 테스트뷰를 만들었습니다.
attr.xml을
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="OutlineTextView">
<attr name="textStroke" format="boolean" />
<attr name="textStrokeWidth" format="float" />
<attr name="textStrokeColor" format="color" />
</declare-styleable>
</resources>
이렇게 지정했고요
액티비티 xml에서
xmlns:sp=http://schemas.android.com/apk/res/com.sp.custom
이렇게하고 TextView를 만드는데
<com.sp.custom.TextCustom
...
sp:textstroke="true"
sp:textstrokecolor="#000000"
sp:textstrokewidth="7.0">
</com.sp.custom.TextCustom>
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'textstrokecolor' in package
'com.sp.custom'
이게 왜 뜨는 걸까요?