2010-12-21 2 views
0

Вот мой XML:Затмение 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 не может быть найден. У меня есть подходящий JAR в моем пути сборки. Что не так?

+0

Вы уверены, что правильно импортировали библиотеку? – Marcovena

ответ

0

Оказалось, что я импортировал библиотеку, но не файл attrs.xml.

+0

Не могли бы вы объяснить, что вы подразумеваете под «импортированием» файла attrs.xml? У меня такая же проблема, и мне хотелось бы знать, как ее исправить! – Chris

Смежные вопросы