I wonder if you could do something like this? Sorry, I donβt have time to test: /
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.HORIZONTAL);
addContentView(layout, new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));
RelativeLayout.LayoutParams adParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
adView = new AdView(this);
layout.addView(adView, adParams);
Since you are adding content presentation on top of the opengl superficial review, maybe .... well, as I said, there is no time to test it. give him a chance?
source
share