文档章节

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

tomcater
 tomcater
发布于 2014/04/14 21:46
字数 2683
阅读 94
收藏 0
点赞 0
评论 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

AndroidThings之基础二 设计理念

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

qq_28831197 ⋅ 05/09 ⋅ 0

绕过安卓的唯一机会,可能是利用EMUI中沉睡的AI藏宝图

前看到一个挺有意思的问题,是说在拍照、续航、芯片等领域,苹果相继被其他品牌追赶甚至超越,那么支撑大家买苹果手机的动力何在呢? 下面有个回复是这么说的:可能是因为iOS吧… 好像有点道...

脑极体 ⋅ 04/21 ⋅ 0

Android 渗透测试学习手册 第三章 Android 应用的逆向和审计

第三章 Android 应用的逆向和审计 作者:Aditya Gupta 译者:飞龙 协议:CC BY-NC-SA 4.0 在本章中,我们将查看 Android 应用程序或文件,并了解其不同的组件。 我们还将使用工具(如 Apktoo...

apachecn_飞龙 ⋅ 2016/12/11 ⋅ 0

挖掘安卓宝藏,EMUI会让手机进入“量心定制”时代吗?

如果把移动终端的发展历程看做一部戏剧,那么Android和iOS两种操作系统生态之间的竞争一定是最精彩的一折。 从市场占有率来看,2017年Android手机在全球售出的手机中占据了85.9%份额,其中自...

脑极体 ⋅ 04/17 ⋅ 0

谷歌 Fuchsia 源码现身 AOSP,支持 ART 运行环境

近期 AOSP 安卓开放源代码项目站点上出现了基于非 Linux 核心的 Fuchsia 源码,Fuchsia 是谷歌正在研发的下一代全新系统,其基于 Zircon 核心,而根据 XDA 社区的开发者 Mishaal Rahman 最新的...

周其 ⋅ 04/28 ⋅ 0

Android 定制系统 - MIUI

MIUI是小米科技推出的一款基于CyanogenMod而深度定制的Android移动操作系统,从Android 4.0开始,已经完全脱离CyanogenMod而改为基于原厂ROM的定制方式,中文名称为“米柚”。它大幅修改了A...

匿名 ⋅ 2013/01/10 ⋅ 0

安卓巴士Android开发者门户

一、开源库 1.SimpleRatingBar 简单好用的ratingbar 2.NumberRain Android自定义控件仿黑客帝国数字雨 3.CacheWebView 突破系统WebView缓存的空间限制的WebView 4.lucklypopupwindow Android...

迷你芊宝宝 ⋅ 昨天 ⋅ 0

Android P 开发者预览版支持 DNS over TLS

作者:Erik Kline (Android 软件工程师) & Ben Schwartza (Jigsaw 软件工程师) 绝大多数网络连接的第一步都是 DNS 查询。客户端 (如智能手机) 通常使用由 Wi-Fi 或者移动网络提供的 DNS 服务...

Android_开发者 ⋅ 05/24 ⋅ 0

NetHunter和花生壳实现SSH远程访问内网安卓手机

  *本文作者:2benben,本文属 FreeBuf 原创奖励计划,未经许可禁止转载。   关键词: 内网穿透, 端口映射, SSH协议, 花生壳, Kali NetHunter      本文针对普通家庭内网用户,有条件...

FreeBuf ⋅ 06/11 ⋅ 0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

win10怎么彻底关闭自动更新

win10自带的更新每天都很多,每一次下载都要占用大量网络,而且安装要等得时间也蛮久的。 工具/原料 Win10 方法/步骤 单击左下角开始菜单点击设置图标进入设置界面 在设置窗口中输入“服务”...

阿K1225 ⋅ 今天 ⋅ 0

Elasticsearch 6.3.0 SQL功能使用案例分享

The best elasticsearch highlevel java rest api-----bboss Elasticsearch 6.3.0 官方新推出的SQL检索插件非常不错,本文一个实际案例来介绍其使用方法。 1.代码中的sql检索 @Testpu...

bboss ⋅ 今天 ⋅ 0

informix数据库在linux中的安装以及用java/c/c++访问

一、安装前准备 安装JDK(略) 到IBM官网上下载informix软件:iif.12.10.FC9DE.linux-x86_64.tar放在某个大家都可以访问的目录比如:/mypkg,并解压到该目录下。 我也放到了百度云和天翼云上...

wangxuwei ⋅ 今天 ⋅ 0

PHP语言系统ZBLOG或许无法重现月光博客的闪耀历史[图]

最近在写博客,希望通过自己努力打造一个优秀的教育类主题博客,名动江湖,但是问题来了,现在写博客还有前途吗?面对强大的自媒体站点围剿,还有信心和可能型吗? 至于程序部分,我选择了P...

原创小博客 ⋅ 今天 ⋅ 0

IntelliJ IDEA 2018.1新特性

工欲善其事必先利其器,如果有一款IDE可以让你更高效地专注于开发以及源码阅读,为什么不试一试? 本文转载自:netty技术内幕 3月27日,jetbrains正式发布期待已久的IntelliJ IDEA 2018.1,再...

Romane ⋅ 今天 ⋅ 0

浅谈设计模式之工厂模式

工厂模式(Factory Pattern)是 Java 中最常用的设计模式之一。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式。 在工厂模式中,我们在创建对象时不会对客户端暴露创建逻...

佛系程序猿灬 ⋅ 今天 ⋅ 0

Dockerfile基础命令总结

FROM 指定使用的基础base image FROM scratch # 制作base image ,不使用任何基础imageFROM centos # 使用base imageFROM ubuntu:14.04 尽量使用官方的base image,为了安全 LABEL 描述作...

ExtreU ⋅ 昨天 ⋅ 0

存储,对比私有云和公有云的不同

导读 说起公共存储,很难不与后网络公司时代的选择性外包联系起来,但尽管如此,它还是具备着简单和固有的可用性。公共存储的名字听起来也缺乏专有性,很像是把东西直接堆放在那里而不会得到...

问题终结者 ⋅ 昨天 ⋅ 0

C++难点解析之const修饰符

C++难点解析之const修饰符 c++ 相比于其他编程语言,可能是最为难掌握,概念最为复杂的。结合自己平时的C++使用经验,这里将会列举出一些常见的难点并给出相应的解释。 const修饰符 const在c...

jackie8tao ⋅ 昨天 ⋅ 0

聊聊spring cloud netflix的HystrixCommands

序 本文主要研究一下spring cloud netflix的HystrixCommands。 maven <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-clo......

go4it ⋅ 昨天 ⋅ 0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

返回顶部
顶部