From d1a9e3312387b6c47e6186af506787a8a66369d1 Mon Sep 17 00:00:00 2001
From: lmw <125975490@qq.com>
Date: 星期六, 09 十一月 2024 18:40:36 +0800
Subject: [PATCH] fix

---
 app/src/main/res/layout/fragment_tree.xml |  322 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 319 insertions(+), 3 deletions(-)

diff --git a/app/src/main/res/layout/fragment_tree.xml b/app/src/main/res/layout/fragment_tree.xml
index 78bc9eb..8583bb2 100644
--- a/app/src/main/res/layout/fragment_tree.xml
+++ b/app/src/main/res/layout/fragment_tree.xml
@@ -1,7 +1,323 @@
 <?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayout
-    xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/colorPrimary">
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools">
+    <TextView
+        android:id="@+id/tv_1"
+        android:layout_width="match_parent"
+        android:layout_height="85dp"
+        app:layout_constraintTop_toTopOf="parent"
+        android:background="@color/white"
+        android:text="树苗打卡站"
+        android:gravity="center|bottom"
+        android:paddingBottom="12dp"
+        android:textColor="@color/textColor"
+        android:textSize="17sp"
+        android:textStyle="bold"/>
+    <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintBaseline_toBaselineOf="@id/tv_1"
+        android:text="规则说明"
+        android:textSize="14sp"
+        android:padding="10dp"
+        android:layout_marginEnd="3dp"
+        android:id="@+id/tv_rule"
+        android:textColor="@color/textColor"/>
+    <androidx.coordinatorlayout.widget.CoordinatorLayout
+        android:id="@+id/cl"
+        android:layout_width="match_parent"
+        android:layout_marginTop="85dp"
+        android:background="@color/colorPrimary"
+        android:layout_height="match_parent">
+        <androidx.constraintlayout.widget.ConstraintLayout
+            android:layout_width="match_parent"
+            android:layout_height="match_parent">
+            <xyz.doikki.videoplayer.player.VideoView
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                app:screenScaleType="type_center_crop"
+                android:layout_marginBottom="20dp"
+                app:playerBackgroundColor="@color/white"
+                android:id="@+id/player"/>
 
+            <ImageView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:id="@+id/iv_sunshine"
+                app:layout_constraintStart_toStartOf="parent"
+                app:layout_constraintTop_toTopOf="parent"/>
+            <ImageView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:id="@+id/iv_water_anim"
+                android:layout_marginTop="110dp"
+                android:layout_marginEnd="50dp"
+                app:layout_constraintEnd_toEndOf="parent"
+                app:layout_constraintTop_toTopOf="parent"/>
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:id="@+id/tv_power"
+                android:text="当前能量值:0"
+                android:textColor="@color/textGreen"
+                android:textSize="12sp"
+                android:drawableStart="@mipmap/ic_tree"
+                android:gravity="center"
+                android:drawablePadding="2dp"
+                android:layout_marginStart="14dp"
+                android:layout_marginTop="20dp"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintStart_toStartOf="parent"/>
+            <TextView
+                android:id="@+id/tv_gif"
+                android:layout_width="wrap_content"
+                android:layout_height="35dp"
+                android:text="礼品兑换"
+                android:drawablePadding="3dp"
+                android:gravity="center_vertical|end"
+                android:textColor="@color/white"
+                android:textSize="14sp"
+                android:textStyle="bold"
+                android:paddingEnd="10dp"
+                app:layout_constraintEnd_toEndOf="parent"
+                android:background="@drawable/bg_gradiant_gitf"
+                app:layout_constraintBaseline_toBaselineOf="@id/tv_power"
+                android:drawableStart="@mipmap/lipin"/>
+            <ImageView
+                android:id="@+id/iv_water"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:src="@mipmap/jiaoshui"
+                app:layout_constraintEnd_toEndOf="parent"
+                app:layout_constraintTop_toBottomOf="@id/tv_gif"
+                android:layout_marginTop="50dp"/>
+            <View
+                android:id="@+id/bg_growth"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintTop_toTopOf="parent"
+                android:layout_width="10dp"
+                android:layout_marginBottom="20dp"
+                android:alpha="0.23"
+                app:layout_constraintStart_toStartOf="parent"
+                android:layout_marginStart="28dp"
+                android:background="@drawable/bg_white_line_2dp"
+                android:layout_height="161dp"/>
+            <View
+                android:id="@+id/progress"
+                android:layout_width="5dp"
+                android:layout_height="1dp"
+                app:layout_constraintBottom_toBottomOf="@id/bg_growth"
+                app:layout_constraintStart_toStartOf="@id/bg_growth"
+                app:layout_constraintEnd_toEndOf="@id/bg_growth"
+                android:layout_marginBottom="3dp"
+                android:background="@drawable/bg_growth"/>
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:id="@+id/tv_max"
+                app:layout_constraintBottom_toTopOf="@id/bg_growth"
+                app:layout_constraintStart_toStartOf="@id/bg_growth"
+                app:layout_constraintEnd_toEndOf="@id/bg_growth"
+                android:textSize="9sp"
+                android:layout_marginBottom="7dp"
+                android:alpha="0.7"
+                android:textColor="@color/white"
+                android:textStyle="bold"
+                tools:text="/1000"/>
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:id="@+id/tv_growth"
+                app:layout_constraintBottom_toTopOf="@id/tv_max"
+                app:layout_constraintStart_toStartOf="@id/bg_growth"
+                app:layout_constraintEnd_toEndOf="@id/bg_growth"
+                android:textSize="12sp"
+                android:textColor="@color/white"
+                android:textStyle="bold"
+                tools:text="900"/>
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="成长值"
+                android:textColor="@color/darkGreen"
+                app:layout_constraintStart_toStartOf="@id/bg_growth"
+                app:layout_constraintEnd_toEndOf="@id/bg_growth"
+                app:layout_constraintBottom_toTopOf="@id/tv_growth"
+                android:textSize="11sp"
+                android:textStyle="bold"
+                android:paddingHorizontal="5dp"
+                android:paddingVertical="1dp"
+                android:background="@drawable/bg_tv_growth"/>
+
+            <ImageView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:id="@+id/iv_tree"
+                app:layout_constraintTop_toTopOf="@id/player"
+                app:layout_constraintStart_toStartOf="@id/player"
+                app:layout_constraintEnd_toEndOf="@id/player"
+                android:paddingBottom="150dp"
+                app:layout_constraintBottom_toBottomOf="@id/player"/>
+
+            <TextView
+                android:layout_width="164dp"
+                android:layout_height="wrap_content"
+                android:id="@+id/tv_again"
+                app:layout_constraintBottom_toBottomOf="parent"
+                android:background="@drawable/bg_white_grey_line_20dp"
+                android:textColor="@color/colorPrimary"
+                android:paddingVertical="10dp"
+                app:layout_constraintStart_toStartOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                android:layout_marginBottom="80dp"
+                android:textStyle="bold"
+                android:visibility="gone"
+                android:textSize="15sp"
+                android:gravity="center"
+                android:text="重新播种"/>
+        </androidx.constraintlayout.widget.ConstraintLayout>
+        <androidx.constraintlayout.widget.ConstraintLayout
+            android:layout_width="match_parent"
+            app:layout_behavior="@string/bottom_sheet_behavior"
+            android:id="@+id/bottom"
+            android:background="@drawable/bg_white_top_20dp"
+            android:layout_height="311dp">
+            <TextView
+                android:layout_width="match_parent"
+                android:layout_height="53dp"
+                app:layout_constraintTop_toTopOf="parent"
+                android:text="任务列表"
+                android:textSize="20sp"
+                android:textColor="@color/textColor66"
+                android:textStyle="bold"
+                android:drawableStart="@mipmap/icon_all"
+                android:id="@+id/tv_title_task"
+                android:gravity="center_vertical"
+                android:paddingHorizontal="50dp"
+                android:drawablePadding="6dp"
+                android:background="@drawable/bg_grey_top_2p"/>
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="Task List"
+                android:textSize="10sp"
+                app:layout_constraintEnd_toEndOf="@id/tv_title_task"
+                android:textColor="@color/textColor66"
+                android:layout_marginEnd="45dp"
+                app:layout_constraintBaseline_toBaselineOf="@id/tv_title_task"/>
+            <androidx.constraintlayout.widget.ConstraintLayout
+                android:layout_width="match_parent"
+                android:layout_height="0dp"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintTop_toBottomOf="@id/tv_title_task"
+                android:orientation="vertical"
+                android:background="@color/white">
+                <TextView
+                    android:id="@+id/task_1"
+                    android:layout_width="match_parent"
+                    android:layout_height="44dp"
+                    android:layout_marginTop="31dp"
+                    android:layout_marginHorizontal="21dp"
+                    android:drawableStart="@mipmap/ic_task"
+                    android:paddingStart="15dp"
+                    android:text="每日打卡签到【+10能量值】"
+                    android:textSize="12sp"
+                    android:gravity="center_vertical"
+                    android:drawablePadding="4dp"
+                    app:layout_constraintTop_toTopOf="parent"
+                    android:textColor="@color/white"
+                    android:background="@drawable/bg_green_21dp"/>
+                <TextView
+                    android:id="@+id/tv_sign"
+                    android:layout_width="86dp"
+                    app:layout_constraintBaseline_toBaselineOf="@id/task_1"
+                    app:layout_constraintEnd_toEndOf="@id/task_1"
+                    android:layout_marginEnd="9dp"
+                    android:layout_height="25dp"
+                    android:text="打卡签到"
+                    android:enabled="true"
+                    android:gravity="center"
+                    android:textSize="12sp"
+                    android:drawableStart="@drawable/black_ring"
+                    android:paddingStart="12dp"
+                    android:textColor="@color/selector_white_black_enable"
+                    android:background="@drawable/selector_bg_task_enable"/>
+                <TextView
+                    android:id="@+id/task_2"
+                    android:layout_width="match_parent"
+                    android:layout_height="44dp"
+                    android:layout_marginTop="17dp"
+                    android:layout_marginHorizontal="21dp"
+                    android:drawableStart="@mipmap/ic_task"
+                    android:paddingStart="15dp"
+                    android:text="每日疗愈满30分钟【+10能量值】"
+                    android:textSize="12sp"
+                    android:gravity="center_vertical"
+                    android:drawablePadding="4dp"
+                    app:layout_constraintTop_toBottomOf="@id/task_1"
+                    android:textColor="@color/white"
+                    android:background="@drawable/bg_green_21dp"/>
+                <TextView
+                    android:id="@+id/tv_to_think"
+                    android:layout_width="86dp"
+                    app:layout_constraintBaseline_toBaselineOf="@id/task_2"
+                    app:layout_constraintEnd_toEndOf="@id/task_1"
+                    android:layout_marginEnd="9dp"
+                    android:layout_height="25dp"
+                    android:text="前往疗愈"
+                    android:enabled="true"
+                    android:gravity="center"
+                    android:textSize="12sp"
+                    android:drawableStart="@drawable/black_ring"
+                    android:paddingStart="12dp"
+                    android:textColor="@color/selector_white_black_enable"
+                    android:background="@drawable/selector_bg_task_enable"/>
+                <TextView
+                    android:id="@+id/task_3"
+                    android:layout_width="match_parent"
+                    android:layout_height="44dp"
+                    android:layout_marginTop="17dp"
+                    android:layout_marginHorizontal="21dp"
+                    android:drawableStart="@mipmap/ic_task"
+                    android:paddingStart="15dp"
+                    android:text="每日疗愈满60分钟【+20能量值】"
+                    android:textSize="12sp"
+                    android:gravity="center_vertical"
+                    android:drawablePadding="4dp"
+                    app:layout_constraintTop_toBottomOf="@id/task_2"
+                    android:textColor="@color/white"
+                    android:background="@drawable/bg_green_21dp"/>
+                <TextView
+                    android:id="@+id/tv_to_think_2"
+                    android:layout_width="86dp"
+                    app:layout_constraintBaseline_toBaselineOf="@id/task_3"
+                    app:layout_constraintEnd_toEndOf="@id/task_1"
+                    android:layout_marginEnd="9dp"
+                    android:layout_height="25dp"
+                    android:text="前往疗愈"
+                    android:enabled="true"
+                    android:gravity="center"
+                    android:textSize="12sp"
+                    android:drawableStart="@drawable/black_ring"
+                    android:paddingStart="12dp"
+                    android:textColor="@color/selector_white_black_enable"
+                    android:background="@drawable/selector_bg_task_enable"/>
+            </androidx.constraintlayout.widget.ConstraintLayout>
+        </androidx.constraintlayout.widget.ConstraintLayout>
+    </androidx.coordinatorlayout.widget.CoordinatorLayout>
+    <ImageView
+        android:id="@+id/signed"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:visibility="gone"
+        app:layout_constraintTop_toTopOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        android:src="@mipmap/signed"/>
 </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file

--
Gitblit v1.7.1