AIR for Android コンテンツルートViewの取得

Android アプリのルートViewの取得

ViewGroup decor = (ViewGroup)this.getWindow().getDecorView();

Android アプリのコンテンツルートViewの取得

ViewGroup contentRoot = (ViewGroup)this.findViewById(android.R.id.content);

AIR for Android アプリのコンテンツルートViewの取得

ViewGroup contentRoot = (ViewGroup)activity.findViewById(android.R.id.content);
ViewGroup airContentGroup = (ViewGroup)contentRoot.getChildAt(0);

AIR for Android アプリのコンテンツルートViewの子供たち
たぶんAIRのアプリがここにおかれそう。

AIRWindowSurfaceView view =(AIRWindowSurfaceView)airContentGroup.getChildAt(0);

たぶんこのほかにもStageなんたらってクラスはここにViewが置かれると推測されます。

自前Stageなんたらって作るならこのairContentGroup に置きましょう。

government,politics news,politics news,politics
 

タグ: ,

コメントは受け付けていません。