在Android活动的背景中播放视频的合适方式是什么(视频作为背景视图)
我发现现有的教程中没有一个是有效的。有人对此有什么建议吗?有一个带有VideoView的框架布局和保存内容的视图。将内容视图设置为半透明。这样,视频将在背景中播放,并在其上播放半透明内容 大概是这样的:在Android活动的背景中播放视频的合适方式是什么(视频作为背景视图),android,android-studio,Android,Android Studio,我发现现有的教程中没有一个是有效的。有人对此有什么建议吗?有一个带有VideoView的框架布局和保存内容的视图。将内容视图设置为半透明。这样,视频将在背景中播放,并在其上播放半透明内容 大概是这样的: <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <VideoView android:id="@+id/progr
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<VideoView
android:id="@+id/progress_bar"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_horizontal|top" />
<TextView
android:background="#CCFF0000"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_horizontal|top"
>
</TextView>
</FrameLayout>
让我知道这是否适用于您有一个带有VideoView的框架布局和保存内容的视图。将内容视图设置为半透明。这样,视频将在背景中播放,并在其上播放半透明内容 大概是这样的:
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<VideoView
android:id="@+id/progress_bar"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_horizontal|top" />
<TextView
android:background="#CCFF0000"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_horizontal|top"
>
</TextView>
</FrameLayout>
让我知道这是否适用于你在我的头顶上,可能使用网络视图并禁用滚动你想使用视频作为背景,并在顶部有其他内容吗?在我头顶上,可能使用网络视图并禁用滚动你想使用视频作为背景,并在顶部有其他内容吗?