Android NativeExpressAdView内部CardView
如果我从Cardview切换到Framelayout,则当我在Cardview中显示广告时,广告不会显示。出现广告的原因是什么Android NativeExpressAdView内部CardView,android,admob,android-support-library,android-cardview,google-admob,Android,Admob,Android Support Library,Android Cardview,Google Admob,如果我从Cardview切换到Framelayout,则当我在Cardview中显示广告时,广告不会显示。出现广告的原因是什么 <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/banner_bg"
android:orientation="vertical"
card_view:cardElevation="@dimen/card_elevation_height">
<com.google.android.gms.ads.NativeExpressAdView xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="match_parent"
ads:adSize="FULL_WIDTHx148"
ads:adUnitId="@string/test_unit_id_m" />
我认为你应该在java代码中加载广告?如何实现?在你的活动中创建广告。.你加载广告了吗?我在adpter中进行