<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/layout1"
android:layout_width="match_parent"
android:layout_height="45dp">
<ImageView
android:id="@+id/titleBg"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#12B7F5" />
<TextView
android:id="@+id/titleText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
android:padding="10.0dip"
android:singleLine="true"
android:text="库存查询"
android:textColor="@color/white"
android:textSize="20dp" />
<ImageButton
android:id="@+id/fh_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerInParent="true"
android:background="@drawable/back_bg" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/layout2"
android:layout_width="fill_parent"
android:layout_height="80dp"
android:background="#e2edf5"
android:layout_below="@id/layout1">
<Button
android:id="@+id/btn_queryboxStock"
android:layout_width="90dp"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:layout_marginTop="14dp"
android:layout_marginRight="9dp"
android:background="@drawable/button"
android:text="查找"
android:textColor="@color/white" />
<EditText
android:id="@+id/et_code"
android:layout_width="270dp"
android:layout_height="50dp"
android:layout_marginLeft="12dp"
android:layout_marginTop="15dp"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@+id/btn_queryboxStock"
android:background="@drawable/background"
android:hint="请扫描条码"
android:lines="2"
android:textColorHint="#808080" />
</RelativeLayout>
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/layout2"
android:background="@drawable/line" />
<RelativeLayout
android:id="@+id/layout3"
android:layout_below="@id/layout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<ListView
android:id="@+id/lv_stock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:choiceMode="multipleChoice"></ListView>
</LinearLayout>