Narysuj nakładkę (HUD) na Android VideoView?

Mam widok niestandardowy, który rysujeHUD:

Oto mój układ:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout  xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <VideoView
        android:id="@+id/videoView1"
        android:layout_gravity="center"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <com.widgets.HUD
            android:id="@+id/hud"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" />

</FrameLayout>
public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.hud_fragment, container, false);

    frameLayout = (FrameLayout) view.findViewById(R.id.frameLayout);

    hudWidget = (HUD) view.findViewById(R.id.hudWidget);

    videoView = (VideoView) view.findViewById(R.id.videoView1);
    videoView.setVideoURI(Uri.parse("http://88.150.210.138:5001/spor"));
    videoView.start();

    frameLayout.removeView(hudWidget);
    frameLayout.addView(hudWidget);
    hudWidget.bringToFront();

    return view;
}

Gram wRTSP strumień na moimVideoView jak tylko film zacznie się odtwarzać, wygląda to tak:

Jak mogę zmusić HUD do rysowania na wierzchuVideoView? HUD extends SurfaceView

ProjektProjekt, który próbuję dodać, to VideoViewDroidPlanner Możesz spróbować klonować i zobaczyć problem. (Musisz ręcznie dodać VideoView, ponieważ nie ma go w repo).

questionAnswers(4)

yourAnswerToTheQuestion