You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

653 lines
30 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.activity.WeatherActivity">
<include
android:id="@+id/toolbarView"
layout="@layout/layout_base" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@drawable/lv_border_all_weather"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:paddingBottom="6dp"
android:paddingTop="6dp"
android:layout_weight="2"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="32dp"
android:id="@+id/rl_wendu"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="大气温度"
android:textStyle="bold"
android:textColor="@color/colorPrimary"
android:textSize="16sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="12dp"
android:layout_marginTop="6dp"
android:src="@drawable/arrow_right_weather"
android:contentDescription="" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_wendu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="0"
android:textColor="#000000"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv_wendu"
android:layout_alignParentEnd="true"
android:layout_marginStart="10dp"
android:layout_marginEnd="12dp"
android:text="°C"
android:textColor="#000000"
android:textSize="18sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/time_wendu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="2025-09-08 13:12:11"
android:textColor="#666666"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="70dp"
android:layout_height="120dp"
android:layout_weight="1"
android:gravity="center|bottom"
android:paddingBottom="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/tv_refresh1"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:background="@drawable/icon_refresh"
android:text=""/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@drawable/lv_border_all_weather"
android:layout_weight="1"
android:layout_marginStart="10dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_weight="2"
android:paddingBottom="6dp"
android:paddingTop="6dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_shidu"
android:layout_width="match_parent"
android:layout_height="32dp"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="大气湿度"
android:textStyle="bold"
android:textColor="@color/colorPrimary"
android:textSize="16sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="12dp"
android:layout_marginTop="6dp"
android:src="@drawable/arrow_right_weather"
android:contentDescription="" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_shidu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="0"
android:textColor="#000000"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv_shidu"
android:layout_alignParentEnd="true"
android:layout_marginStart="10dp"
android:layout_marginEnd="12dp"
android:text="%"
android:textColor="#000000"
android:textSize="18sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/time_shidu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="2025-09-08 13:12:11"
android:textColor="#666666"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="70dp"
android:layout_height="120dp"
android:layout_weight="1"
android:gravity="center|bottom"
android:paddingBottom="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/tv_refresh2"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:background="@drawable/icon_refresh"
android:text=""/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@drawable/lv_border_all_weather"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:paddingBottom="10dp"
android:paddingTop="10dp"
android:layout_weight="2"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_qiya"
android:layout_width="match_parent"
android:layout_height="32dp"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="大气气压"
android:textStyle="bold"
android:textColor="@color/colorPrimary"
android:textSize="16sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="12dp"
android:layout_marginTop="6dp"
android:src="@drawable/arrow_right_weather"
android:contentDescription="" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_qiya"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="0"
android:textColor="#000000"
android:textSize="15sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv_qiya"
android:layout_alignParentEnd="true"
android:layout_marginStart="10dp"
android:layout_marginEnd="12dp"
android:text="hpa"
android:textColor="#000000"
android:textSize="15sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/time_qiya"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="2025-09-08 13:12:11"
android:textColor="#666666"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="70dp"
android:layout_height="120dp"
android:layout_weight="1"
android:gravity="center|bottom"
android:paddingBottom="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/tv_refresh3"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:background="@drawable/icon_refresh"
android:text=""/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@drawable/lv_border_all_weather"
android:layout_weight="1"
android:layout_marginStart="10dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_weight="2"
android:paddingBottom="10dp"
android:paddingTop="10dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_fengshu"
android:layout_width="match_parent"
android:layout_height="32dp"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="实时风速"
android:textStyle="bold"
android:textColor="@color/colorPrimary"
android:textSize="16sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="12dp"
android:layout_marginTop="6dp"
android:src="@drawable/arrow_right_weather"
android:contentDescription="" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_fengsu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="0"
android:textColor="#000000"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv_fengsu"
android:layout_alignParentEnd="true"
android:layout_marginStart="10dp"
android:layout_marginEnd="12dp"
android:text="米/秒"
android:textColor="#000000"
android:textSize="18sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/time_fengsu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="2025-09-08 13:12:11"
android:textColor="#666666"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="70dp"
android:layout_height="120dp"
android:layout_weight="1"
android:gravity="center|bottom"
android:paddingBottom="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/tv_refresh4"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:background="@drawable/icon_refresh"
android:text=""/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_margin="10dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@drawable/lv_border_all_weather"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:paddingBottom="10dp"
android:paddingTop="10dp"
android:layout_weight="2"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_fengqiang"
android:layout_width="match_parent"
android:layout_height="32dp"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="实时风向"
android:textStyle="bold"
android:textColor="@color/colorPrimary"
android:textSize="16sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="12dp"
android:layout_marginTop="6dp"
android:src="@drawable/arrow_right_weather"
android:contentDescription="" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_fengxiang"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="0"
android:textColor="#000000"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv_fengxiang"
android:layout_alignParentEnd="true"
android:layout_marginStart="10dp"
android:layout_marginEnd="12dp"
android:text="°"
android:textColor="#000000"
android:textSize="18sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/time_fengxiang"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="2025-09-08 13:12:11"
android:textColor="#666666"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="70dp"
android:layout_height="120dp"
android:layout_weight="1"
android:gravity="center|bottom"
android:paddingBottom="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/tv_refresh5"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:background="@drawable/icon_refresh"
android:text=""/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@drawable/lv_border_all_weather"
android:layout_weight="1"
android:layout_marginStart="10dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_weight="2"
android:paddingBottom="10dp"
android:paddingTop="10dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_yuliang"
android:layout_width="match_parent"
android:layout_height="32dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_name_sd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="日雨量累计"
android:textStyle="bold"
android:textColor="@color/colorPrimary"
android:textSize="16sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="12dp"
android:layout_marginTop="6dp"
android:src="@drawable/arrow_right_weather"
android:contentDescription="" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/tv_yuliang"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="0"
android:textColor="#000000"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv_yuliang"
android:layout_alignParentEnd="true"
android:layout_marginStart="10dp"
android:layout_marginEnd="12dp"
android:text="毫米"
android:textColor="#000000"
android:textSize="18sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/time_yuliang"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="2025-09-08 13:12:11"
android:textColor="#666666"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="70dp"
android:layout_height="120dp"
android:layout_weight="1"
android:gravity="center|bottom"
android:paddingBottom="20dp"
android:orientation="vertical">
<TextView
android:id="@+id/tv_refresh6"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:background="@drawable/icon_refresh"
android:text=""/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>