SurfaceView
a の中に aを表示することはできPopoupWindow
ますか?
のこの XML を使用すると、次のようになりPopupWindow
ます。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:padding="10dip"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#444444"
>
<SurfaceView
android:layout_width="100px"
android:layout_height="100px"
/>
</LinearLayout>
ポップアップが機能せず、次のログ メッセージが生成されます。
W/WindowManager( 60): Attempted to add window with token that is a sub-window: android.os.BinderProxy@4058e3c8. Aborting.
View
の代わりに使用すると正常にSurfaceView
動作します。
編集: プラットフォーム 2.3.3 を使用すると問題が発生するようですが、プラットフォーム 4.1 を使用するとすべて正常に動作します。他のプラットフォーム バージョンではテストしていません。