【发布时间】:2016-07-12 21:24:16
【问题描述】:
我需要在我的 TextureView 上添加 View 以在其中播放视频
我以前用过VideoView,它完全没问题,但我的动画有问题,所以我把它改成了TextureView,现在我不能在上面放任何View!
似乎Textureview 将覆盖所有视图
这是我的 xml 布局:
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/frmview"
>
<com.my.app.TextureVideoView
android:id="@+id/vv_play"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:alpha="0.0" />
<ImageView
android:id="@+id/iv_play"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srcCompat="@drawable/app_ic" />
</FrameLayout>
如何将View 放在正在播放视频的TextureView 上?
【问题讨论】:
标签: android android-layout android-videoview textureview android-textureview