<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:background="#00417E"
android:layout_width="match_parent"
android:layout_height="50dp">
<ImageView
android:padding="8dp"
android:layout_marginLeft="8dp"
android:layout_centerVertical="true"
android:id="@+id/iv_home"
android:src="@drawable/home"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:layout_centerInParent="true"
android:textColor="#ffffff"
android:textSize="19sp"
android:text="航班查询"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
<!-- 出发地 目的地模块 -->
<LinearLayout
android:layout_marginRight="5dp"
android:layout_marginLeft="5dp"
android:layout_marginTop="15dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="50dp">
<RelativeLayout
android:padding="5dp"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="match_parent">
<ImageView
android:layout_alignParentBottom="true"
android:id="@+id/iv1"
android:src="@drawable/from"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:layout_toRightOf="@+id/iv1"
android:layout_above="@+id/ll1"
android:text="出发城市"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:id="@+id/ll1"
android:layout_toRightOf="@+id/iv1"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:background="@drawable/ll_shape"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Spinner
android:layout_weight="8"
android:background="@null"
style="@style/Widget.AppCompat.Spinner.DropDown"
android:id="@+id/spinner_from"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></Spinner>
<ImageView
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:src="@drawable/jiantou"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
<View
android:layout_width="5dp"
android:layout_height="match_parent"/>
<RelativeLayout
android:padding="5dp"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="match_parent">
<ImageView
android:layout_alignParentBottom="true"
android:id="@+id/iv2"
android:src="@drawable/to"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:layout_alignLeft="@+id/ll2"
android:layout_above="@+id/ll2"
android:text="到达城市"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_marginRight="5dp"
android:layout_marginLeft="5dp"
android:id="@+id/ll2"
android:layout_toRightOf="@+id/iv2"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:background="@drawable/ll_shape"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Spinner
android:layout_weight="8"
android:background="@null"
style="@style/Widget.AppCompat.Spinner.DropDown"
android:id="@+id/spinner_to"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></Spinner>
<ImageView
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:src="@drawable/jiantou"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<Button
android:id="@+id/bt_query"
android:layout_marginLeft="70dp"
android:layout_marginRight="70dp"
android:layout_marginTop="30dp"
android:textColor="#ffffff"
android:layout_gravity="center_horizontal"
android:background="@drawable/bt_bg"
android:text="查询"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<View
android:layout_marginTop="20dp"
android:background="@drawable/shadow"
android:layout_width="match_parent"
android:layout_height="8dp"/>
<ListView
android:scrollbars="none"
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="match_parent"></ListView>
</LinearLayout>
总结 2018-1-18
最新推荐文章于 2023-02-27 23:07:05 发布