我下面就如何在您的應用程序Here和 得到的AdMob在我的XML佈局文件我的活動我得到一個渲染問題本教程:渲染問題讓AdMob
A <fragment> tag allows a layout file to dynamically include different layouts at runtime. At layout editing time the specific layout to be used is not known. You can choose which layout you would like previewed while editing the layout.
- <fragment xetron.cosmicclicker.MyActivity$AdFragment ...> (Pick Layout...)
- <fragment xetron.cosmicclicker.MyActivity$AdFragment ...> (Pick Layout...)
Do not warn about <fragment> tags in this session
XML佈局文件對於下面的活動
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="8dp"
android:orientation="vertical"
android:paddingBottom="6dp"
android:gravity="center|top"
android:background="@drawable/background"
tools:context=".MyActivity">
<fragment
android:name="xetron.cosmicclicker.MyActivity$AdFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/adFragment" />
<fragment
android:id="@+id/adFragment"
android:name="xetron.cosmicclicker.MyActivity$AdFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
</LinearLayout>
我做了什麼錯,我該如何解決這個問題?
你使用的是android studio嗎? – j2emanue 2014-10-29 18:22:32
是的,即時通訊使用android studio – Xetron 2014-10-29 18:27:20
有人可以請幫忙 – Xetron 2014-10-29 19:21:20