2010-12-21 63 views
0

這裏是我的XML:Eclipse中的AdMob沒有找到屬性

<?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的告訴我該應用程序:的backgroundColor,應用程序:primaryTextColor和應用:secondaryTextColor無法找到。我的構建路徑中有適當的admob JAR。怎麼了?

+0

你確定你正確導入了庫嗎? – Marcovena 2010-12-21 18:07:26

回答

0

原來我導入了庫,但沒有導入attrs.xml文件。

+0

你能解釋一下「導入」attrs.xml文件的含義嗎?我有類似的問題,並希望知道如何解決它! – Chris 2011-02-07 16:05:33

相關問題