layout_lock_screen_rest_mode.xml 2.59 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    android:id="@+id/constraint_rest_mode"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <ImageView
        android:id="@+id/iv_rest"
        android:layout_width="36dp"
        android:layout_height="36dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:src="@drawable/ic_rest_time"></ImageView>

    <TextView
        android:id="@+id/tv_rest"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="休息时段"
        android:layout_marginLeft="18dp"
        android:textColor="@color/color_white"
        android:textSize="14sp"
        app:layout_constraintLeft_toRightOf="@id/iv_rest"
        app:layout_constraintTop_toTopOf="@id/iv_rest" />


    <TextView
        android:id="@+id/tv_rest_time"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="#94ffffff"
        android:textSize="12sp"
        app:layout_constraintLeft_toRightOf="@id/iv_rest"
        app:layout_constraintLeft_toLeftOf="@id/tv_rest"
        app:layout_constraintTop_toBottomOf="@id/tv_rest"
        />


    <ImageView
        android:id="@+id/iv_normal"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:layout_marginTop="20dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toBottomOf="@id/iv_rest"
        android:src="@drawable/ic_normal_use_time"></ImageView>

    <TextView
        android:id="@+id/tv_normal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="正常使用时段"
        android:textColor="@color/color_white"
        android:textSize="14sp"
        android:layout_marginLeft="18dp"
        app:layout_constraintLeft_toRightOf="@id/iv_normal"
        app:layout_constraintTop_toTopOf="@id/iv_normal" />


    <TextView
        android:id="@+id/tv_normal_use_time"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        android:textColor="#94ffffff"
        android:textSize="12sp"
        app:layout_constraintLeft_toRightOf="@id/iv_normal"
        app:layout_constraintLeft_toLeftOf="@id/tv_normal"

        app:layout_constraintTop_toBottomOf="@id/tv_normal"
        />

</androidx.constraintlayout.widget.ConstraintLayout>