<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="10dp"
|
android:orientation="horizontal">
|
|
<ImageView
|
android:layout_width="26dp"
|
android:layout_height="26dp"
|
android:background="@drawable/icon_air_info" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="10dp"
|
android:text="空气质量"
|
android:textSize="12sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="15dp"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:layout_weight="1"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:gravity="center_horizontal"
|
android:layout_weight="1"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
android:textSize="18sp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="普陀区" />
|
|
<TextView
|
android:textSize="16sp"
|
android:textColor="@color/lightGreen"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="优" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_marginRight="10dp"
|
android:textSize="12sp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="AQI:43" />
|
|
<TextView
|
android:textSize="12sp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="PM2.5:43" />
|
</LinearLayout>
|
|
<TextView
|
android:textSize="12sp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="PM10:33" />
|
</LinearLayout>
|
<LinearLayout
|
android:gravity="center_horizontal"
|
android:layout_weight="1"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
android:textSize="18sp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="上海市" />
|
|
<TextView
|
android:textSize="16sp"
|
android:textColor="@color/lightGreen"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="优" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_marginRight="10dp"
|
android:textSize="12sp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="AQI:43" />
|
|
<TextView
|
android:textSize="12sp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="PM2.5:43" />
|
</LinearLayout>
|
|
<TextView
|
android:textSize="12sp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="PM10:33" />
|
</LinearLayout>
|
|
|
</LinearLayout>
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="8dp"
|
android:layout_below="@id/tv_info"
|
android:layout_marginTop="30dp"
|
android:background="#ebebeb" />
|
</LinearLayout>
|
|
</RelativeLayout>
|