You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
FFmpegAndroid/app/src/main/res/layout/activity_audio_play.xml

75 lines
2.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/txt_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:layout_centerHorizontal="true"
android:textColor="@color/colorPrimary"
android:textSize="18sp"/>
<TextView
android:id="@+id/txt_artist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/txt_title"
android:layout_marginTop="10dp"
android:layout_centerHorizontal="true"
android:textColor="@color/colorPrimary"
android:textSize="18sp"/>
<com.frank.ffmpeg.view.LrcView
android:id="@+id/list_lyrics"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginTop="160dp"
android:layout_marginBottom="160dp"/>
<RelativeLayout
android:id="@+id/layout_control"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="30dp">
<SeekBar
android:id="@+id/audio_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"/>
<TextView
android:id="@+id/txt_time"
android:layout_below="@id/audio_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignStart="@id/audio_bar"
android:textColor="@color/colorPrimary"/>
<TextView
android:id="@+id/txt_duration"
android:layout_below="@+id/audio_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@id/audio_bar"
android:textColor="@color/colorPrimary"/>
<ImageView
android:id="@+id/img_play"
android:layout_below="@+id/audio_bar"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerHorizontal="true"
android:src="@drawable/ic_pause"
android:contentDescription="@string/audio_play" />
</RelativeLayout>
</RelativeLayout>