안드로이드 개발 질문/답변
(글 수 45,052)
admob이나 다음 ad@m 을 앱에 넣어 줄때...
attrs.xml을 편집하게 되는데요...
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- admob -->
<declare-styleable name="com.admob.android.ads.AdView">
<attr name="backgroundColor" format="color" />
<attr name="primaryTextColor" format="color" />
<attr name="secondaryTextColor" format="color" />
<attr name="keywords" format="string" />
<attr name="refreshInterval" format="integer" />
</declare-styleable>
<!-- daum adam -->
<declare-styleable name="net.daum.mobilead.MobileAdView">
<attr name="adbgcolor" format="color" />
<attr name="adTextColor" format="color" />
<attr name="subTextColor" format="color" />
<!-- 앞쪽 admob 에서 이미 사용하고 잇어서..
<attr name="keywords" format="string" />
<attr name="refreshInterval" format="integer" />
-->
</declare-styleable>
</resources>
이렇게 2개모두 넣어주게 attrs.xml 을 편집했는데... adam쪽 attribute쪽에 선언된 attr 2 개 속성값
keywords , refreshInterval 이 이미 선언되 있다라고 에러 나옵니다. 그런데 declare-styleable 에서
name값에 따라 이두개의 속성이 독립적으로 취급되는거 아닌가요?
아래쪽에 주석된 곳 속성들을 사용할 수 있으려면 어떤 조치들이 필요한가요?
s/w 엔지니어, 개발자 천국을 지향합니다.