106 lines
3.5 KiB
XML
106 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context=".activity.DetailActivity">
|
|
|
|
<include layout="@layout/comon_layout_top"/>
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/data_image"
|
|
android:layout_width="200dp"
|
|
android:layout_height="200dp"
|
|
android:layout_below="@id/main_top"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="20dp"
|
|
android:background="@drawable/list_background"
|
|
android:padding="50dp"
|
|
android:src="@mipmap/ic_launcher" />
|
|
|
|
|
|
<android.widget.Button
|
|
android:id="@+id/btn_play_pause"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_below="@id/data_image"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/selector_play"
|
|
android:gravity="center" />
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_loop"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/btn_play_pause"
|
|
android:layout_marginStart="25dp"
|
|
android:layout_marginTop="52dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/loop"
|
|
android:textColor="@color/black"
|
|
android:textSize="17sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/im_loop"
|
|
android:layout_width="26dp"
|
|
android:layout_height="26dp"
|
|
android:layout_marginStart="6dp"
|
|
android:src="@drawable/selector_loop" />
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/layout_loop"
|
|
android:layout_marginTop="16dp"
|
|
android:paddingStart="25dp"
|
|
android:paddingEnd="25dp">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/low"
|
|
android:layout_width="26dp"
|
|
android:layout_height="26dp"
|
|
android:src="@drawable/im_volumelow" />
|
|
|
|
<SeekBar
|
|
android:id="@+id/seekbar"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:layout_toStartOf="@id/high"
|
|
android:layout_toEndOf="@id/low"
|
|
android:maxHeight="4dp"
|
|
android:progress="10"
|
|
android:progressDrawable="@drawable/seekbar_progress_drawable"
|
|
android:thumb="@drawable/seekbar_thumb" />
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/high"
|
|
android:layout_width="26dp"
|
|
android:layout_height="26dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:src="@drawable/im_volumehigh" />
|
|
</RelativeLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/loading"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:indeterminateTint="@color/loading_color" />
|
|
</RelativeLayout> |