layout_meditation_play_float_view.xml 4.13 KB
Newer Older
范玉宾 committed
1 2 3 4
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
范玉宾 committed
5
        android:background="@drawable/bg_meditation_play_float"
范玉宾 committed
6
        android:layout_marginHorizontal="16dp"
范玉宾 committed
7 8 9 10 11 12 13
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

    <androidx.constraintlayout.widget.ConstraintLayout
            android:id="@+id/csl_root_layout"
            android:layout_width="match_parent"
            android:layout_height="56dp"
范玉宾 committed
14
            android:background="@drawable/bg_play_meditation_float_view">
范玉宾 committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

        <ImageView
                android:id="@+id/iv_close"
                android:layout_width="28dp"
                android:layout_height="29dp"
                android:paddingHorizontal="5dp"
                android:paddingVertical="5dp"
                android:layout_marginStart="15dp"
                android:src="@drawable/icon_close_meditation_play_float_view"
                app:layout_constraintEnd_toStartOf="@id/ll_meditation_info"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintBottom_toBottomOf="parent" />

        <LinearLayout
                android:id="@+id/ll_meditation_info"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_marginStart="20dp"
                android:gravity="center_vertical"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toEndOf="@id/iv_close" >

范玉宾 committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
            <androidx.cardview.widget.CardView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    app:cardCornerRadius="8dp"
                    app:cardElevation="0dp">

                <ImageView
                        android:id="@+id/iv_cover"
                        android:layout_width="40dp"
                        android:layout_height="40dp"
                        android:scaleType="centerCrop"
                        android:src="@drawable/platform_loading_logo" />

            </androidx.cardview.widget.CardView>


范玉宾 committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77

            <TextView
                    android:id="@+id/tv_title"
                    android:layout_width="165dp"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="8dp"
                    android:maxLines="1"
                    android:ellipsize="end"
                    android:textColor="@color/white"
                    android:textSize="16sp"
                    tools:text="睡眠安抚睡眠安抚睡眠安抚睡眠安抚"/>

        </LinearLayout>

        <FrameLayout
                android:id="@+id/fl_layout"
                android:layout_width="44dp"
                android:layout_height="44dp"
                android:layout_marginEnd="10dp"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintBottom_toBottomOf="parent">

范玉宾 committed
78
            <io.feeeei.circleseekbar.CircleSeekBar
范玉宾 committed
79 80 81
                    android:id="@+id/progress_bar"
                    android:layout_width="24dp"
                    android:layout_height="24dp"
范玉宾 committed
82
                    android:layout_gravity="center"
范玉宾 committed
83
                    app:wheel_unreached_color="#33FFFFFF"
范玉宾 committed
84 85 86
                    app:wheel_reached_color="#FFFFFF"
                    app:wheel_unreached_width="2dp"
                    app:wheel_reached_width="2dp"/>
范玉宾 committed
87 88 89

            <ImageView
                    android:id="@+id/iv_play_status"
范玉宾 committed
90 91 92 93 94
                    android:layout_width="20dp"
                    android:layout_height="20dp"
                    android:padding="5dp"
                    android:layout_gravity="center"
                    android:src="@drawable/icon_meditation_float_pause"/>
范玉宾 committed
95 96 97 98 99

        </FrameLayout>

    </androidx.constraintlayout.widget.ConstraintLayout>

范玉宾 committed
100

范玉宾 committed
101
</FrameLayout>