如何在以下代码中创建我的 admob 横幅?我完成了一个甜蜜的游戏,但现在我被困在广告中:(。admob 的官方说明不是在谈论SurfaceView。
public class MainActivity extends Activity implements OnTouchListener {
FastRenderView ren;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
try {
ren = new FastRenderView(this);
} catch (IOException e) {
e.printStackTrace();
}
ren.setOnTouchListener(this);
setContentView(ren);
class FastRenderView extends SurfaceView implements Runnable {
Thread renderThread = null;
SurfaceHolder holder;
...