I'm in a similar situation to this guy: Implementing Admob banner when setContentView() is used for the Surfaceview
My "sGame" creates a landscape view game that I want with an admob ad put on top.
I think the answer will work, but I'm not sure which LayoutParams to import for the "layout.setLayoutParams".
When I hit Alt+Enter on the LayoutParams, I get the following options:
import android.view.ViewGroup.LayoutParams;
import android.widget.AbsoluteLayout.LayoutParams;
import android.widget.LinearLayout.LayoutParams;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.FrameLayout.LayoutParams;
import android.widget.GalleryLayout.LayoutParams;
import android.support.v7.widget.LinearLayoutCompat.LayoutParams;
//... quite a few more options