我对 Android 布局没有太多经验。我究竟做错了什么?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
adView = new AdView(this, AdSize.BANNER, MY_CODE);
adView.loadAd(new AdRequest());
adView.setVisibility(AdView.VISIBLE);
}
和我的开始:
public void onStart() {
super.onStart();
LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
this.addContentView(adView, params); // it is ok?
}