开发者

Eclipse AdMob not finding attributes [closed]

开发者 https://www.devze.com 2023-01-31 11:20 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. 开发者_JS百科 Closed 10 years ago.

Here is my XML:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:app="http://schemas.android.com/apk/res/com.tahakki.buttonpuzzlelite"
   android:orientation="vertical"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   >
                        <org.anddev.andengine.opengl.view.RenderSurfaceView android:id="@+id/flip_render"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                android:layout_margin="0px"
                                android:layout_centerInParent="true"                           
                                />
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@+id/flip_render"
            android:layout_alignLeft="@+id/flip_render"
        >
<!-- Ad here -->

<com.admob.android.ads.AdView
           android:layout_width="fill_parent" 
           android:layout_height="wrap_content"
           app:backgroundColor="#000000"
           app:primaryTextColor="#FFFFFF"
           app:secondaryTextColor="#CCCCCC"
    />
        </RelativeLayout>
</RelativeLayout>

Eclipse tells me that app:backgroundColor, app:primaryTextColor and app:secondaryTextColor cannot be found. I have the appropriate admob JAR in my build path. What's wrong?


Turned out I had imported the library but not the attrs.xml file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号