[LayaNative 2.0]发布安卓包对接穿山甲banner广告问题

banner广告不会贴底问题,目前通过获取屏幕宽高方式在部分机型会有问题,所以只能通过相对布局方式设置位置,可是目前打包后的框架内不支持相对布局,怎么解决这个问题
QQ图片20191204102620.png QQ图片20191204102705.png
已邀请:

136*****677

赞同来自:

可以写个activity_main.xml,用RelativeLayout做根节点,mainActivity的setContentView设置为activity_main,laya的gameView添加到RelativeLayout来。
this.setContentView(R.layout.activity_main);
this.gameContainer = findViewById(R.id.game_container);
this.banner_container = findViewById(R.id.banner_container);

View gameView = mPlugin.game_plugin_get_view();
this.gameContainer.addView(gameView);

this.banner_container.addView(bannerView);

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作