Android 简单定制一个视频播放器
安卓系统提供了VideoView用来播放一些特定格式的视频,与MediaController结合使用可以对视频播放进行简单控制 例如: 在布局文件中先声明个VideoView: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/content_main2" android:layout_width="match_parent" android:layout_height="match_parent"> <VideoView android:id="@+id/videoView" android:layout_width="match_parent" android:layout_height="wrap_content" /> </RelativeLayout> 然后,在存储卡的根目录下先放置一个命名为“00.MP4”的视频文件 ...