第一步:搭建界面
实现代码:
<RelativeLayout xmlns:android=“http://schemas.android.com/apk/res/android”
xmlns:tools=“http://schemas.android.com/tools”
android:id=“@+id/RelativeLayout1”
android:layout_width=“match_parent”
android:layout_height=“match_parent”
android:background=“@drawable/bg_playback”
android:orientation=“vertical” >
<RelativeLayout
android:id=“@+id/handle_btnlayout”
android:layout_width=“match_parent”
android:layout_height=“wrap_content” >
<Button
android:id=“@+id/previous_music”
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:layout_alignParentLeft=“true”
android:background=“@drawable/previous_music_selector” />
<Button
android:id=“@+id/repeat_music”
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:layout_toRightOf=“@id/previous_music”
android:background=“@drawable/repeat_none_selector” />
<Button
android:id=“@+id/play_music”
andro