232 lines
9.4 KiB
XML
232 lines
9.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#6EACDA"
|
|
tools:context=".MainActivity">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:layout_marginHorizontal="24dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp"
|
|
android:layout_marginBottom="10dp"
|
|
app:cardBackgroundColor="@color/blue"
|
|
app:cardCornerRadius="15dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_status"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start|center_vertical"
|
|
android:layout_marginStart="20dp"
|
|
android:text="Status : Off"
|
|
android:textColor="@color/white"
|
|
android:textSize="25sp" />
|
|
|
|
<Switch
|
|
android:id="@+id/btn_switch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:layout_marginRight="20dp"
|
|
android:thumbTint="@color/white" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp"
|
|
android:layout_marginBottom="10dp"
|
|
app:cardBackgroundColor="@color/blue"
|
|
app:cardCornerRadius="15dp">
|
|
|
|
<TextView
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start|center_vertical"
|
|
android:layout_marginStart="20dp"
|
|
android:text="Clothesline Condition"
|
|
android:textColor="@color/white"
|
|
android:textSize="25sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_position"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:layout_marginEnd="20dp"
|
|
android:text="Outside"
|
|
android:textColor="@color/white"
|
|
android:textSize="25sp" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="0dp"
|
|
android:layout_height="120dp"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:layout_weight="1"
|
|
app:cardBackgroundColor="@color/blue"
|
|
app:cardCornerRadius="15dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top|center_horizontal"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Weather"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_weatherStatus"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="50dp"
|
|
android:text="Sunny"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="0dp"
|
|
android:layout_height="120dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:layout_weight="1"
|
|
app:cardBackgroundColor="@color/blue"
|
|
app:cardCornerRadius="15dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top|center_horizontal"
|
|
android:layout_marginTop="10dp"
|
|
android:text="Light Intensity"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_lightStatus"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="50dp"
|
|
android:text="Good"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="110dp"
|
|
android:layout_marginBottom="10dp"
|
|
app:cardBackgroundColor="@color/blue"
|
|
app:cardCornerRadius="15dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginStart="20dp">
|
|
|
|
<TextView
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Timer"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
|
|
<TextView
|
|
android:id="@+id/tv_second"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="0"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:text="Sec time left"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
|
|
<Button
|
|
android:id="@+id/btn_add"
|
|
android:layout_width="85dp"
|
|
android:layout_height="40dp"
|
|
android:textSize="14dp"
|
|
android:text="Add"
|
|
android:backgroundTint="#E2E2B6"
|
|
android:textColor="@color/blue" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_reset"
|
|
android:layout_width="85dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:textSize="14dp"
|
|
android:text="Reset"
|
|
android:backgroundTint="#E2E2B6"
|
|
android:textColor="@color/blue" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_start"
|
|
android:layout_width="85dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:textSize="14dp"
|
|
android:text="Start"
|
|
android:backgroundTint="#E2E2B6"
|
|
android:textColor="@color/blue"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<Button
|
|
android:layout_gravity="top|center_horizontal"
|
|
android:id="@+id/btn_weather"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Check Weather Changes"
|
|
android:backgroundTint="#ee6c4d"
|
|
android:textColor="@color/white" />
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |