|
|
@@ -1247,14 +1247,22 @@ public class AppActivity extends Cocos2dxActivity {
|
|
|
if(this.isNativeLoadSuccess)
|
|
|
{
|
|
|
Log.d(TAG_NativeAD, "onResume show:--------------------------------------------------"+(this.mAds != null) +"++"+(this.mAds));
|
|
|
- nativeAdView = this.getView(0,null,(ViewGroup)this.getWindow().getDecorView());
|
|
|
- FrameLayout container = getWindow().getDecorView().findViewById(android.R.id.content);
|
|
|
+ nativeAdView = this.getView(0,nativeAdView,(ViewGroup)this.getWindow().getDecorView());
|
|
|
+ if(ifShowNativeAd)
|
|
|
+ {
|
|
|
+ nativeAdView.setX(0);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
|
|
|
+ }
|
|
|
+ FrameLayout container = getWindow().getDecorView().findViewById(android.R.id.content);
|
|
|
if(nativeAdView !=null && nativeAdView.getParent() == null)
|
|
|
{
|
|
|
Log.d("onResume show","添加进主要的activity");
|
|
|
container.addView(nativeAdView);
|
|
|
}
|
|
|
+
|
|
|
Log.d(TAG_NativeAD,"nativeAdView.getX()" + nativeAdView.getX());
|
|
|
}
|
|
|
else
|