<RelativeLayout 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.fragment.HomeFragment"
|
android:background="@drawable/shape_bg_gradient">
|
|
<include android:id="@+id/topPanel_" layout="@layout/tab_panel_scenetype" android:visibility="gone"/>
|
<cn.flightfeather.thirdapp.view.MyScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:id="@+id/sv_home_base">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
<LinearLayout
|
android:id="@+id/ll_weather_bg"
|
android:layout_width="match_parent"
|
android:layout_height="100dp"
|
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>
|
|
<include android:id="@+id/middlePanel" layout="@layout/tab_panel_scenetype" android:visibility="gone"/>
|
|
<LinearLayout
|
android:id="@+id/sv_home_page"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
<include layout="@layout/function_card1_competent" />
|
<include layout="@layout/function_card4_competent" />
|
<include layout="@layout/function_card2_competent" />
|
<include layout="@layout/function_card3_competent" />
|
</LinearLayout>
|
</LinearLayout>
|
</cn.flightfeather.thirdapp.view.MyScrollView>
|
</RelativeLayout>
|