| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| | | xmlns:app="http://schemas.android.com/apk/res-auto" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent"> |
| | | android:layout_height="match_parent" |
| | | android:background="@color/bg_color"> |
| | | |
| | | <include |
| | | android:id="@+id/title" |
| | | layout="@layout/top_title" /> |
| | | |
| | | <RelativeLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_below="@+id/title" |
| | | android:layout_marginStart="10dp" |
| | | android:layout_marginTop="10dp" |
| | | android:layout_marginEnd="10dp" |
| | | android:layout_marginBottom="10dp" |
| | | android:background="@drawable/bg_fillet_blue" |
| | | android:paddingLeft="15dp" |
| | | android:paddingTop="10dp" |
| | | android:paddingRight="25dp" |
| | | android:paddingBottom="10dp"> |
| | | |
| | | |
| | | <TextView |
| | | android:id="@+id/cityName" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="城市" |
| | | android:textColor="@color/white" |
| | | android:textSize="18sp" /> |
| | | |
| | | |
| | | <TextView |
| | | android:id="@+id/time" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_below="@+id/cityName" |
| | | android:layout_alignParentRight="true" |
| | | android:text="日期" |
| | | android:textColor="@color/white" |
| | | android:textSize="16sp" /> |
| | | |
| | | |
| | | <TextView |
| | | android:id="@+id/weather_name" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="30dp" |
| | | android:layout_below="@+id/time" |
| | | android:layout_alignParentRight="true" |
| | | android:layout_marginTop="10dp" |
| | | android:gravity="center" |
| | | android:text="天气" |
| | | android:textColor="@color/white" |
| | | android:textSize="16sp" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/weather_img" |
| | | android:layout_width="30dp" |
| | | android:layout_height="30dp" |
| | | android:layout_alignTop="@+id/weather_name" |
| | | android:layout_marginRight="10dp" |
| | | android:layout_toLeftOf="@+id/weather_name" |
| | | android:src="@mipmap/weather_99" /> |
| | | |
| | | |
| | | <TextView |
| | | android:id="@+id/weather_temperature" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_below="@+id/weather_name" |
| | | android:layout_alignParentRight="true" |
| | | android:layout_marginTop="10dp" |
| | | android:text="温度" |
| | | android:textColor="@color/white" |
| | | android:textSize="16sp" /> |
| | | |
| | | |
| | | </RelativeLayout> |
| | | |
| | | |
| | | </RelativeLayout> |