我有以下代码:
AdView adView = new AdView(context);
adView.setType(AdType.DISPLAY_BANNER_SMALL);
AdRequest adRequest = new AdRequest();
adRequest.setAdUnitId(<Your Ad Unit>);
adView.loadAd(adRequest);
parent.addView(adView);
以编程方式创建Android View,我需要在js端显示它,例如:
<View>
// This tag will work like a Android View programmatically in your back.
<AdView />
</View>
我该如何解决?
答案 0 :(得分:1)