I'm trying to play a video, where the first and last frame of the
video match a static background image, and the video is triggered by
the accelerometer.
My problem is that i can't get the video view to have a transparent
background. I've tried setting it to a transparent ping drawable, and
also as an alpha'd color, and in those instances there is always a
black box where the VideoView is. I've tried to switch the
VideoView's visibililty on and off when the video plays, but I get a
flicker of the black background of the VideoView as the video starts/
completes.
Does anyone have any thoughts as to how I can achieve this?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background">
<VideoView
android:id="@+id/surface"
android:layout_width="200px"
android:layout_height="200px"
android:layout_gravity="center"d"/>
</LinearLayout>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en