[AIR接入Android 平台]ane 获取主视图+添加layout

1
2
3
4
5
6
7
8
9
10
11
public void buildLayout(Activity act)
  {
    log("ExtensionContext - buildLayout");
   
    this.mAdLayout = new RelativeLayout(act);
   
    ViewGroup fl = (ViewGroup)act.findViewById(16908290);
    fl = (ViewGroup)fl.getChildAt(0);
   
    fl.addView(this.mAdLayout, new FrameLayout.LayoutParams(-1, -1));
  }

可以使用:android.view.Window.ID_ANDROID_CONTENT 替换