我在我的应用程序中使用了中间层的leadbolt广告。看起来很难看的问题。
有截图

alt文本
advert_activity_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg_result_activity"
>
</FrameLayout>AdvertActivity.java
import android.os.Bundle;
import com.Leadbolt.AdController;
import com.alpha_aps.very_hard_game.util.MyActivity;
public class AdvertActivity extends MyActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.advert_activity_layout);
AdController myController = new AdController(this, Config.leadBoltInterstitialId);
myController.loadAd();
}
}我尝试使用一些不同的布局,如RelativeLayout、FrameLayout、LinearLayout --没有结果。另外,我试着使用leadbolt广告设置--使用不同类型的间隙--也没有结果。
所以问题是:
多亏了所有人。
发布于 2014-08-08 13:11:05
我更新到最后的Leadbolt和黑色背景消失,我不知道为什么。
发布于 2013-09-02 09:53:43
当你创建一个新的广告时,一定要检查顶部的“外观”标签。这里有一个背景颜色的部分。对于透明的背景,请确保此字段为空。
一旦广告已经创建,我认为外观不能改变,所以你可能需要创建一个新的。
或者,您可以将重叠不透明度设置为100%,这样广告周围的整个屏幕也是黑色的。该字段还位于广告创建屏幕的“外观”选项卡上。
https://stackoverflow.com/questions/18140502
复制相似问题