我希望能够显示一个按钮以启动一个视频,该视频集中在视频将播放的同一视图中(使用VideoView)。我也希望按钮在点击后消失,因为我使用MediaController类在视频启动后执行暂停,后退,快进操作。在Android中的VideoView上显示和隐藏播放按钮
我该怎么做?
这里的布局我到目前为止:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/video_frame"
android:layout_width="fill_parent"
android:layout_height="480px"
android:background="#000"
>
<VideoView
android:id="@+id/video_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</FrameLayout>
我试着编程方式添加的ImageButton到的FrameLayout,但似乎并没有工作。
如果我理解正确这,是你想放置VideoView内按钮提拉? – crazylpfan 2013-03-09 01:27:46
并非像VideoView那么多。 – 2013-03-09 01:49:38