<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="cn.flightfeather.thirdapp.module.home.HomeFragment">
|
|
<LinearLayout
|
android:id="@+id/ll_weather_bg"
|
android:layout_width="match_parent"
|
android:layout_height="100dp"
|
android:background="@drawable/home_feeds_weather_bkg_sunny"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:id="@+id/ll_weather_detail"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="20dp"
|
android:gravity="center"
|
android:orientation="horizontal">
|
|
<ImageView
|
android:id="@+id/iv_weather_icon"
|
android:layout_width="64dp"
|
android:layout_height="64dp"
|
android:background="@drawable/weather_icon_0" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="5dp"
|
android:orientation="vertical">
|
|
<TextView
|
android:id="@+id/tv_temperature"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="- -°"
|
android:textColor="#ffffff"
|
android:textSize="26sp" />
|
|
<TextView
|
android:id="@+id/tv_weather"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="- -"
|
android:textColor="#ffffff"
|
android:textSize="12sp" />
|
</LinearLayout>
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentRight="true"
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="40dp"
|
android:layout_marginRight="24dp"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<ImageView
|
android:layout_width="10dp"
|
android:layout_height="12dp"
|
android:layout_marginTop="3dp"
|
android:background="@drawable/icon_calendar" />
|
|
<TextView
|
android:id="@+id/tv_now_date_time"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="5dp"
|
android:text="2017年7月20日 星期四"
|
android:textColor="#ffffff"
|
android:textSize="12sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="3dp"
|
android:orientation="horizontal">
|
|
<ImageView
|
android:id="@+id/iv_location"
|
android:layout_width="10dp"
|
android:layout_height="12dp"
|
android:layout_marginTop="3dp"
|
android:background="@drawable/icon_position" />
|
|
<TextView
|
android:id="@+id/tv_location"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="5dp"
|
android:text="定位中"
|
android:textColor="#ffffff"
|
android:textSize="12sp" />
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
<ScrollView
|
android:id="@+id/sv_home_page"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<include layout="@layout/function_card1" />
|
</ScrollView>
|
</LinearLayout>
|