<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:id="@+id/fragment_home"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<!--空状态-->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
<!--<LinearLayout-->
|
<!--android:layout_width="match_parent"-->
|
<!--android:layout_height="0dp"-->
|
<!--android:layout_weight="635"-->
|
<!--android:orientation="vertical">-->
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="635">
|
|
<ImageView
|
android:id="@+id/weather_image_view"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:scaleType="centerCrop"
|
android:src="@drawable/sunny" />
|
|
<LinearLayout
|
android:layout_width="@dimen/w520"
|
android:layout_height="@dimen/h370"
|
android:layout_marginLeft="@dimen/w19"
|
android:layout_marginTop="@dimen/h22"
|
android:background="#20111111"
|
android:orientation="vertical">
|
|
<ImageView
|
android:id="@+id/weather_icon"
|
android:layout_width="@dimen/w160"
|
android:layout_height="@dimen/w160"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginTop="@dimen/h22" />
|
|
<TextView
|
android:id="@+id/temp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginTop="@dimen/h10"
|
android:text="天气预报加载中..."
|
android:textColor="#e6e6fa"
|
android:textSize="@dimen/h54" />
|
|
<TextView
|
android:id="@+id/address"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w80"
|
android:layout_marginTop="@dimen/h20"
|
android:textColor="#e6e6fa"
|
android:textSize="@dimen/h28" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h8"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/wind"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w80"
|
android:textColor="#e6e6fa"
|
android:textSize="@dimen/h28" />
|
|
<TextView
|
android:id="@+id/wind_class"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w80"
|
android:textColor="#e6e6fa"
|
android:textSize="@dimen/h28" />
|
</LinearLayout>
|
</LinearLayout>
|
</RelativeLayout>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/h20" />
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="520"
|
android:visibility="invisible" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h20"
|
android:orientation="vertical"
|
android:visibility="invisible">
|
|
<com.basic.security.widget.Button1
|
android:id="@+id/test1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="1" />
|
|
<com.basic.security.widget.Button1
|
android:id="@+id/test2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="2" />
|
|
<com.basic.security.widget.Button1
|
android:id="@+id/test3"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="3" />
|
</LinearLayout>
|
</RelativeLayout>
|