2

SurfaceViewa の中に 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 を使用するとすべて正常に動作します。他のプラットフォーム バージョンではテストしていません。

4

0 に答える 0