完善485除湿机
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="560dp"
|
||||
android:layout_height="690dp"
|
||||
android:layout_height="730dp"
|
||||
android:layout_margin="80dp"
|
||||
app:cardCornerRadius="10dp"
|
||||
app:cardElevation="40dp"
|
||||
@@ -82,6 +82,25 @@
|
||||
android:layout_height="match_parent"
|
||||
android:background="#F2F0F1">
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_status_info"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_begin="260dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_target_humidity_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:text="目标湿度"
|
||||
android:textColor="#666666"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tv_target_humidity"
|
||||
app:layout_constraintEnd_toStartOf="@+id/tv_target_humidity"
|
||||
app:layout_constraintTop_toTopOf="@+id/tv_target_humidity" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_target_humidity"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -107,49 +126,55 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_environment_humidity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="26dp"
|
||||
android:gravity="start"
|
||||
android:text="环境湿度:--"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/tv_environment_temperature"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="@+id/guideline_status_info" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_environment_temperature"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="26dp"
|
||||
android:gravity="start"
|
||||
android:text="环境温度:--"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/tv_work_status"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="@+id/guideline_status_info" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_work_status"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="26dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="状态:待机"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:gravity="start"
|
||||
android:text="目前状态:待机"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/tv_fault"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="@+id/guideline_status_info" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_fault"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="250dp"
|
||||
android:layout_marginEnd="26dp"
|
||||
android:layout_marginBottom="18dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start"
|
||||
android:singleLine="true"
|
||||
android:text="故障:正常"
|
||||
android:text="故障情况:正常"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
app:layout_constraintStart_toStartOf="@+id/guideline_status_info" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
@@ -157,8 +182,8 @@
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/cl_dehumidifier_control"
|
||||
android:layout_width="450dp"
|
||||
android:layout_height="106dp"
|
||||
android:layout_width="500dp"
|
||||
android:layout_height="90dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
@@ -168,27 +193,29 @@
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/card_power"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="90dp"
|
||||
app:cardCornerRadius="45dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp"
|
||||
app:cardCornerRadius="40dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_power"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="18dp"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:padding="15dp"
|
||||
android:src="@mipmap/open" />
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/card_mode"
|
||||
android:layout_width="330dp"
|
||||
android:layout_height="90dp"
|
||||
app:cardCornerRadius="45dp"
|
||||
android:layout_width="400dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="5dp"
|
||||
app:cardCornerRadius="40dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
@@ -208,16 +235,16 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="18dp"
|
||||
android:src="@mipmap/hum_open" />
|
||||
android:padding="15dp"
|
||||
android:src="@mipmap/cold" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/mode_ventilation"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="18dp"
|
||||
android:src="@mipmap/ven_open" />
|
||||
android:padding="15dp"
|
||||
android:src="@mipmap/auto" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -253,7 +280,7 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_mode_labels"
|
||||
android:layout_width="450dp"
|
||||
android:layout_width="500dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal"
|
||||
@@ -301,38 +328,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/fan_low"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="24dp"
|
||||
android:src="@mipmap/ven_open" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/fan_middle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="20dp"
|
||||
android:src="@mipmap/ven_open" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/fan_high"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="16dp"
|
||||
android:src="@mipmap/ven_open" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -365,6 +360,38 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/fan_low"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="24dp"
|
||||
android:src="@mipmap/ven_open" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/fan_middle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="20dp"
|
||||
android:src="@mipmap/ven_open" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/fan_high"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="16dp"
|
||||
android:src="@mipmap/ven_open" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
Reference in New Issue
Block a user