写一个小程序,在App里面实现mp3的播发,暂停,停止
步骤:
1. 新建项目,添加mp3
2. UI 制作 activity_main.xml添加3个按钮,实现播放,暂停,停止
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/app_name"
android:layout_g