文档章节

基于android系统的快递查询应用(二)

tomcater
 tomcater
发布于 2014/04/14 21:46
字数 2683
阅读 96
收藏 0
 //关于界面
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="match_parent"
    android:layout_height="match_parent"
    
    android:orientation="vertical" >
<RelativeLayout
        android:id="@+id/login_top_layout"
        android:layout_width="fill_parent"
        android:layout_height="45dp"
        android:layout_alignParentTop="true"
        android:background="@drawable/title_bar" >
        <Button
            android:id="@+id/login_reback_btn"
            android:layout_width="70dp"
            android:layout_height="fill_parent"
            android:layout_centerVertical="true"
            android:background="@drawable/mm_title_back_normal"
            android:onClick="login_back"
            android:text="返回"
            android:textColor="#fff"
            android:textSize="14sp" />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            
            android:text="关于我们"
            android:textColor="#fff"
            android:textSize="20sp" />
    </RelativeLayout>
   <LinearLayout 
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#EBEBEB"
    android:gravity="center"
    android:orientation="vertical"
    android:padding="20dp"
    >
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/shapelayout_grey_bg"
        
        android:orientation="vertical" >
        <LinearLayout
            android:id="@+id/aboutlayout_1"
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:orientation="horizontal"
            android:paddingLeft="5dp" >
            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="2"
                android:gravity="center|center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="5dp"
                android:paddingRight="5dp" >
                <Button
                    android:id="@+id/aboutauthorbtn"
                    android:layout_width="0dp"
                    android:layout_height="50dp"
                    android:layout_weight="2"
                    android:gravity="center|center_vertical"
                    android:background="#EBEBEB"
                    android:text="关于作者"
                    android:textColor="#00688B"
                    android:textSize="20sp"
                    android:textStyle="bold" 
                    android:onClick="aboutme"/>
                <TextView
                    android:layout_width="14dp"
                    android:layout_height="22dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/night_set_unfold"
                    android:gravity="center|center_vertical"
                    android:textSize="20sp"
                    android:textStyle="bold" />
            </LinearLayout>
        </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:id="@+id/aboutlayout_2"
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:orientation="horizontal"
            android:paddingLeft="5dp" >
            <LinearLayout
                android:id="@+id/companyname_layout"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="2"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="5dp"
                android:paddingRight="5dp" >
                <Button
                    android:id="@+id/mzsmbtn"
                    android:layout_width="0dp"
                    android:layout_height="50dp"
                    android:layout_weight="2"
                    android:gravity="center|center_vertical"
                    android:background="#EBEBEB"
                    android:text="免责声明"
                    android:textColor="#00688B"
                    android:textSize="20sp"
                    android:textStyle="bold" 
                    android:onClick="mzsm"/>
                <TextView
                    android:layout_width="14dp"
                    android:layout_height="22dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/night_set_unfold"
                    android:gravity="center|center_vertical"
                    android:textColor="#262626"
                    android:textSize="20sp"
                    android:textStyle="bold" />
            </LinearLayout>
        </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
       
    </LinearLayout>
</LinearLayout>
</LinearLayout>
 //主界面
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#EBEBEB"
    android:orientation="vertical" >
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:background="@drawable/tab_black_bg" >
        <TextView
            android:id="@+id/currentcitytitletxt"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center|center_vertical"
            android:text="@string/version_code"
            android:textColor="#FFFFFF"
            android:textSize="22sp"
            android:textStyle="bold" />
    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="2dp"
        android:background="@drawable/shapelayout_grey_bg"
        android:orientation="vertical" >
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:orientation="horizontal"
            android:paddingLeft="5dp" >
            <TextView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="3"
                android:gravity="center|center_vertical"
                android:text="快递公司:"
                android:textColor="#262626"
                android:textSize="18sp"
                android:textStyle="bold" />
            <LinearLayout
                android:id="@+id/companyname_layout"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_margin="1dp"
                android:layout_weight="7"
                android:background="@drawable/linearlayout_selectbackground"
                android:gravity="center|center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="5dp"
                android:paddingRight="5dp" >
                <TextView
                    android:id="@+id/companynametxt"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="2"
                    android:gravity="left|center_vertical"
                    android:hint="请选择快递公司"
                    android:textColor="#00688B"
                    android:textSize="18sp"
                    android:textStyle="bold" />
                <TextView
                    android:layout_width="20dp"
                    android:layout_height="25dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/night_set_unfold"
                    android:gravity="center|center_vertical"
                    android:textColor="#262626"
                    android:textSize="23sp"
                    android:textStyle="bold" />
            </LinearLayout>
        </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:orientation="horizontal"
            android:paddingLeft="5dp" >
            <TextView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="3"
                android:gravity="center|center_vertical"
                android:text="运单号:"
                android:textColor="#262626"
                android:textSize="18sp"
                android:textStyle="bold" />
            <LinearLayout
                android:id="@+id/companyname_layout"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="7"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="5dp"
                android:paddingRight="5dp" >
                <EditText
                    android:id="@+id/order_numtxt"
                    android:layout_width="0dp"
                    android:layout_height="45dp"
                    android:layout_gravity="center|center_vertical"
                    android:layout_weight="2"
                    android:background="@drawable/search_bar_edit_normal"
                    android:gravity="left|center_vertical"
                    android:hint="请输入订单号"
                    android:paddingLeft="5dp"
                    android:text=""
                    android:textColor="#00688B"
                    android:textSize="18sp"
                    android:textStyle="bold" />
                <TextView
                    android:layout_width="20dp"
                    android:layout_height="25dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/night_set_unfold"
                    android:gravity="center|center_vertical"
                    android:textColor="#262626"
                    android:textSize="18sp"
                    android:textStyle="bold" />
            </LinearLayout>
        </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:gravity="center|center_vertical"
            android:orientation="horizontal"
            android:padding="5dp" >
            <Button
                android:id="@+id/searchbtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_gravity="center|center_vertical"
                android:layout_weight="1"
                android:background="@drawable/searchbtn"
                android:gravity="center_horizontal|center_vertical"
                android:text="快速查询"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold" />
            <View
                android:layout_width="10dp"
                android:layout_height="match_parent" />
            <Button
                android:id="@+id/historybtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_weight="1"
                android:background="@drawable/history_btn_normal"
                android:gravity="center|center_vertical"
                android:text="查询历史"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold" />
            </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="60dp"
            android:orientation="vertical"
             >
       <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:gravity="center|center_vertical"
            android:orientation="horizontal"
            android:padding="5dp" >
            <Button
                android:id="@+id/locationbtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_gravity="center|center_vertical"
                android:layout_weight="1"
                android:background="@drawable/searchhkbtn"
                android:gravity="center_horizontal|center_vertical"
                android:text="学校快递"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold"
                android:onClick="main_location" />
            <View
                android:layout_width="10dp"
                android:layout_height="match_parent" />
            <Button
                android:id="@+id/aboutmebtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_weight="1"
                android:background="@drawable/searchhkbtn"
                android:gravity="center|center_vertical"
                android:text="关于我们"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold"
                android:onClick="main_aboutme" />
            </LinearLayout>
      
    </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:padding="5dp"
        android:text="sddsdsdsd" >
        <TextView
            android:id="@+id/title"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="2"
            android:gravity="left|bottom"
            android:paddingLeft="10dp"
            android:scrollbarFadeDuration="250"
            android:scrollbarStyle="outsideOverlay"
            android:scrollbars="vertical"
            android:singleLine="false"
            android:textColor="#104E8B"
            android:textSize="18sp" />
        <TextView
            android:id="@+id/phonenumbertxt"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="2"
            android:gravity="left|bottom"
            android:paddingLeft="10dp"
            android:scrollbarFadeDuration="250"
            android:scrollbarStyle="outsideOverlay"
            android:scrollbars="vertical"
            android:singleLine="false"
            android:textColor="#FF0000"
            android:textSize="20sp" />
        <TextView
            android:id="@+id/helpinfotext"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="6"
            android:gravity="left|top"
            android:paddingLeft="10dp"
            android:scrollbarFadeDuration="250"
            android:scrollbarStyle="outsideOverlay"
            android:scrollbars="vertical"
            android:singleLine="false"
            android:textColor="#FF0000"
            android:textSize="20sp" />
    </LinearLayout>
</LinearLayout>
 //选择快递公司
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#EBEBEB"
    android:orientation="vertical" >
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:background="@drawable/tab_black_bg" >
        <TextView
            android:id="@+id/currentcitytitletxt"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center|center_vertical"
            android:text="@string/version_code"
            android:textColor="#FFFFFF"
            android:textSize="22sp"
            android:textStyle="bold" />
    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="2dp"
        android:background="@drawable/shapelayout_grey_bg"
        android:orientation="vertical" >
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:orientation="horizontal"
            android:paddingLeft="5dp" >
            <TextView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="3"
                android:gravity="center|center_vertical"
                android:text="快递公司:"
                android:textColor="#262626"
                android:textSize="18sp"
                android:textStyle="bold" />
            <LinearLayout
                android:id="@+id/companyname_layout"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_margin="1dp"
                android:layout_weight="7"
                android:background="@drawable/linearlayout_selectbackground"
                android:gravity="center|center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="5dp"
                android:paddingRight="5dp" >
                <TextView
                    android:id="@+id/companynametxt"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="2"
                    android:gravity="left|center_vertical"
                    android:hint="请选择快递公司"
                    android:textColor="#00688B"
                    android:textSize="18sp"
                    android:textStyle="bold" />
                <TextView
                    android:layout_width="20dp"
                    android:layout_height="25dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/night_set_unfold"
                    android:gravity="center|center_vertical"
                    android:textColor="#262626"
                    android:textSize="23sp"
                    android:textStyle="bold" />
            </LinearLayout>
        </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:orientation="horizontal"
            android:paddingLeft="5dp" >
            <TextView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="3"
                android:gravity="center|center_vertical"
                android:text="运单号:"
                android:textColor="#262626"
                android:textSize="18sp"
                android:textStyle="bold" />
            <LinearLayout
                android:id="@+id/companyname_layout"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="7"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="5dp"
                android:paddingRight="5dp" >
                <EditText
                    android:id="@+id/order_numtxt"
                    android:layout_width="0dp"
                    android:layout_height="45dp"
                    android:layout_gravity="center|center_vertical"
                    android:layout_weight="2"
                    android:background="@drawable/search_bar_edit_normal"
                    android:gravity="left|center_vertical"
                    android:hint="请输入订单号"
                    android:paddingLeft="5dp"
                    android:text=""
                    android:textColor="#00688B"
                    android:textSize="18sp"
                    android:textStyle="bold" />
                <TextView
                    android:layout_width="20dp"
                    android:layout_height="25dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/night_set_unfold"
                    android:gravity="center|center_vertical"
                    android:textColor="#262626"
                    android:textSize="18sp"
                    android:textStyle="bold" />
            </LinearLayout>
        </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:gravity="center|center_vertical"
            android:orientation="horizontal"
            android:padding="5dp" >
            <Button
                android:id="@+id/searchbtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_gravity="center|center_vertical"
                android:layout_weight="1"
                android:background="@drawable/searchbtn"
                android:gravity="center_horizontal|center_vertical"
                android:text="快速查询"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold" />
            <View
                android:layout_width="10dp"
                android:layout_height="match_parent" />
            <Button
                android:id="@+id/historybtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_weight="1"
                android:background="@drawable/history_btn_normal"
                android:gravity="center|center_vertical"
                android:text="查询历史"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold" />
            </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="60dp"
            android:orientation="vertical"
             >
       <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:gravity="center|center_vertical"
            android:orientation="horizontal"
            android:padding="5dp" >
            <Button
                android:id="@+id/locationbtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_gravity="center|center_vertical"
                android:layout_weight="1"
                android:background="@drawable/searchhkbtn"
                android:gravity="center_horizontal|center_vertical"
                android:text="学校快递"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold"
                android:onClick="main_location" />
            <View
                android:layout_width="10dp"
                android:layout_height="match_parent" />
            <Button
                android:id="@+id/aboutmebtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_weight="1"
                android:background="@drawable/searchhkbtn"
                android:gravity="center|center_vertical"
                android:text="关于我们"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold"
                android:onClick="main_aboutme" />
            </LinearLayout>
      
    </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:padding="5dp"
        android:text="sddsdsdsd" >
        <TextView
            android:id="@+id/title"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="2"
            android:gravity="left|bottom"
            android:paddingLeft="10dp"
            android:scrollbarFadeDuration="250"
            android:scrollbarStyle="outsideOverlay"
            android:scrollbars="vertical"
            android:singleLine="false"
            android:textColor="#104E8B"
            android:textSize="18sp" />
        <TextView
            android:id="@+id/phonenumbertxt"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="2"
            android:gravity="left|bottom"
            android:paddingLeft="10dp"
            android:scrollbarFadeDuration="250"
            android:scrollbarStyle="outsideOverlay"
            android:scrollbars="vertical"
            android:singleLine="false"
            android:textColor="#FF0000"
            android:textSize="20sp" />
        <TextView
            android:id="@+id/helpinfotext"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="6"
            android:gravity="left|top"
            android:paddingLeft="10dp"
            android:scrollbarFadeDuration="250"
            android:scrollbarStyle="outsideOverlay"
            android:scrollbars="vertical"
            android:singleLine="false"
            android:textColor="#FF0000"
            android:textSize="20sp" />
    </LinearLayout>
</LinearLayout>
 //查询历史
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#EBEBEB"
    android:orientation="vertical" >
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:background="@drawable/tab_black_bg" >
        <TextView
            android:id="@+id/currentcitytitletxt"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center|center_vertical"
            android:text="@string/version_code"
            android:textColor="#FFFFFF"
            android:textSize="22sp"
            android:textStyle="bold" />
    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="2dp"
        android:background="@drawable/shapelayout_grey_bg"
        android:orientation="vertical" >
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:orientation="horizontal"
            android:paddingLeft="5dp" >
            <TextView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="3"
                android:gravity="center|center_vertical"
                android:text="快递公司:"
                android:textColor="#262626"
                android:textSize="18sp"
                android:textStyle="bold" />
            <LinearLayout
                android:id="@+id/companyname_layout"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_margin="1dp"
                android:layout_weight="7"
                android:background="@drawable/linearlayout_selectbackground"
                android:gravity="center|center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="5dp"
                android:paddingRight="5dp" >
                <TextView
                    android:id="@+id/companynametxt"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="2"
                    android:gravity="left|center_vertical"
                    android:hint="请选择快递公司"
                    android:textColor="#00688B"
                    android:textSize="18sp"
                    android:textStyle="bold" />
                <TextView
                    android:layout_width="20dp"
                    android:layout_height="25dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/night_set_unfold"
                    android:gravity="center|center_vertical"
                    android:textColor="#262626"
                    android:textSize="23sp"
                    android:textStyle="bold" />
            </LinearLayout>
        </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:orientation="horizontal"
            android:paddingLeft="5dp" >
            <TextView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="3"
                android:gravity="center|center_vertical"
                android:text="运单号:"
                android:textColor="#262626"
                android:textSize="18sp"
                android:textStyle="bold" />
            <LinearLayout
                android:id="@+id/companyname_layout"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="7"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="5dp"
                android:paddingRight="5dp" >
                <EditText
                    android:id="@+id/order_numtxt"
                    android:layout_width="0dp"
                    android:layout_height="45dp"
                    android:layout_gravity="center|center_vertical"
                    android:layout_weight="2"
                    android:background="@drawable/search_bar_edit_normal"
                    android:gravity="left|center_vertical"
                    android:hint="请输入订单号"
                    android:paddingLeft="5dp"
                    android:text=""
                    android:textColor="#00688B"
                    android:textSize="18sp"
                    android:textStyle="bold" />
                <TextView
                    android:layout_width="20dp"
                    android:layout_height="25dp"
                    android:layout_marginLeft="5dp"
                    android:background="@drawable/night_set_unfold"
                    android:gravity="center|center_vertical"
                    android:textColor="#262626"
                    android:textSize="18sp"
                    android:textStyle="bold" />
            </LinearLayout>
        </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:gravity="center|center_vertical"
            android:orientation="horizontal"
            android:padding="5dp" >
            <Button
                android:id="@+id/searchbtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_gravity="center|center_vertical"
                android:layout_weight="1"
                android:background="@drawable/searchbtn"
                android:gravity="center_horizontal|center_vertical"
                android:text="快速查询"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold" />
            <View
                android:layout_width="10dp"
                android:layout_height="match_parent" />
            <Button
                android:id="@+id/historybtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_weight="1"
                android:background="@drawable/history_btn_normal"
                android:gravity="center|center_vertical"
                android:text="查询历史"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold" />
            </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#5B5B5B" />
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="60dp"
            android:orientation="vertical"
             >
       <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:gravity="center|center_vertical"
            android:orientation="horizontal"
            android:padding="5dp" >
            <Button
                android:id="@+id/locationbtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_gravity="center|center_vertical"
                android:layout_weight="1"
                android:background="@drawable/searchhkbtn"
                android:gravity="center_horizontal|center_vertical"
                android:text="学校快递"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold"
                android:onClick="main_location" />
            <View
                android:layout_width="10dp"
                android:layout_height="match_parent" />
            <Button
                android:id="@+id/aboutmebtn"
                android:layout_width="0dp"
                android:layout_height="45dp"
                android:layout_weight="1"
                android:background="@drawable/searchhkbtn"
                android:gravity="center|center_vertical"
                android:text="关于我们"
                android:textColor="#FFFFFF"
                android:textSize="20sp"
                android:textStyle="bold"
                android:onClick="main_aboutme" />
            </LinearLayout>
      
    </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:padding="5dp"
        android:text="sddsdsdsd" >
        <TextView
            android:id="@+id/title"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="2"
            android:gravity="left|bottom"
            android:paddingLeft="10dp"
            android:scrollbarFadeDuration="250"
            android:scrollbarStyle="outsideOverlay"
            android:scrollbars="vertical"
            android:singleLine="false"
            android:textColor="#104E8B"
            android:textSize="18sp" />
        <TextView
            android:id="@+id/phonenumbertxt"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="2"
            android:gravity="left|bottom"
            android:paddingLeft="10dp"
            android:scrollbarFadeDuration="250"
            android:scrollbarStyle="outsideOverlay"
            android:scrollbars="vertical"
            android:singleLine="false"
            android:textColor="#FF0000"
            android:textSize="20sp" />
        <TextView
            android:id="@+id/helpinfotext"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="6"
            android:gravity="left|top"
            android:paddingLeft="10dp"
            android:scrollbarFadeDuration="250"
            android:scrollbarStyle="outsideOverlay"
            android:scrollbars="vertical"
            android:singleLine="false"
            android:textColor="#FF0000"
            android:textSize="20sp" />
    </LinearLayout>
</LinearLayout>

© 著作权归作者所有

共有 人打赏支持
tomcater
粉丝 4
博文 43
码字总数 55169
作品 0
海淀
程序员
安卓PDA的功能和特点及应用行业

  安卓PDA又称为掌上电脑,可以帮助我们完成在移动中工作,学习,娱乐等。按使用来分类,分为工业级PDA和消费品PDA。工业级PDA主要应用在工业领域,常见的有条码扫描器、RFID读写器、POS机...

sznewbest
05/28
0
0
Reading:一款不错的Material Desgin风格的Kotlin版本的开源APP

Reading https://github.com/Hankkin/Reading 简介 很久不见,重新拾起博客吧,今天分享一个开源APP-Reading,项目的初衷是因为自己平时翻文章,但是公众号又经常忘记看,自己索性搞一个APP吧...

Hankkinn
08/22
0
0
Android 轮询最佳实践 Service + AlarmManager+Thread

android中涉及到将服务器中数据变化信息通知用户一般有两种办法,推送和轮询。 消息推送是服务端主动发消息给客户端,因为第一时间知道数据发生变化的是服务器自己,所以推送的优势是实时性高...

yaly
2015/05/07
0
0
AndroidThings之基础二 设计理念

转载自:https://blog.csdn.net/tangxiaoyin/article/details/75273491 (PS:目前AndroidThings已经走向消费级别,发布正式版本1.0版,开发板推荐树莓派3B+) 前言 2012 年 6 月,由 IoT-GSI(...

qq_28831197
05/09
0
0
Android开发-面向对象的数据库Db4o

领先的开源面向对象数据库提供厂商db4objects宣布db4o已可以顺利运行于Android平台。先前的InfoQ新闻“Db4Objects发布Db4o 7.0,支持透明激活”中曾经报道db4objects公司和爱好者积极推进db4...

JavaGG
2010/03/24
0
0

没有更多内容

加载失败,请刷新页面

加载更多

day92-20180918-英语流利阅读-待学习

健身最大的敌人不是懒惰,而是逞强 Daniel 2018-09-19 1.今日导读 还记得 2008 年北京奥运会运动员刘翔的退赛风波吗?那天几乎所有中国人都将视线聚焦在了鸟巢体育馆 110 米栏的项目上,迫不...

飞鱼说编程
23分钟前
2
0
70.shell的函数 数组 告警系统需求分析

20.16/20.17 shell中的函数 20.18 shell中的数组 20.19 告警系统需求分析 20.16/20.17 shell中的函数: ~1. 函数就是把一段代码整理到了一个小单元中,并给这个小单元起一个名字,当用到这段...

王鑫linux
今天
3
0
分布式框架spring-session实现session一致性使用问题

前言:项目中使用到spring-session来缓存用户信息,保证服务之间session一致性,但是获取session信息为什么不能再服务层获取? 一、spring-session实现session一致性方式 用户每一次请求都会...

WALK_MAN
今天
6
0
C++ yield()与sleep_for()

C++11 标准库提供了yield()和sleep_for()两个方法。 (1)std::this_thread::yield(): 线程调用该方法时,主动让出CPU,并且不参与CPU的本次调度,从而让其他线程有机会运行。在后续的调度周...

yepanl
今天
4
0
Java并发编程实战(chapter_3)(线程池ThreadPoolExecutor源码分析)

这个系列一直没再写,很多原因,中间经历了换工作,熟悉项目,熟悉新团队等等一系列的事情。并发课题对于Java来说是一个又重要又难的一大块,除非气定神闲、精力满满,否则我本身是不敢随便写...

心中的理想乡
今天
56
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部