zoukankan      html  css  js  c++  java
  • 十天冲刺第二天

    第二天学习了主页面的ui

     xml文件

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout 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"
        tools:context=".fragment.SummaryFragment"
    
        android:orientation="vertical">
    
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:layout_marginTop="20dp"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            >
    
            <Button
                android:id="@+id/buttonShop"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:text="外卖"
                android:textSize="15dp"
                android:textColor="#fff"
                android:background="#000"
                android:layout_marginRight="10dp"
                android:layout_weight="0.2"/>
    
            <Button
                android:id="@+id/buttonPrint"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="0.2"
                android:textColor="#fff"
                android:layout_marginRight="10dp"
                android:background="#3300ff"
                android:text="打印" />
    
            <Button
                android:id="@+id/buttonDeliver"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="0.2"
                android:layout_marginRight="10dp"
                android:background="#ff0033"
                android:text="快递" />
    
            <Button
                android:id="@+id/buttonElse"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="0.2"
                android:text="其他"
                android:background="#D3D3D3"/>
        </LinearLayout>
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp">
    
    
            <Button
                android:id="@+id/buttonPlayOrder"
                android:layout_width="300dp"
                android:layout_height="wrap_content"
                android:text="我要找跑腿"
                android:layout_centerHorizontal="true"
                android:background="#EEEE00"/>
    
    
            <TextView
                android:id="@+id/textView9"
                android:layout_below="@id/buttonPlayOrder"
                android:layout_width="100dp"
                android:layout_height="50dp"
                android:layout_marginLeft="50dp"
                android:gravity="center"
                android:layout_marginTop="20dp"
                android:background="#EEAD0E"
                android:text="订单总览" />
            <androidx.appcompat.widget.AppCompatSpinner
                android:layout_width="100dp"
                android:layout_height="50dp"
                android:id="@+id/action_spinner"
                android:layout_marginTop="20dp"
                android:background="@color/colorPrimary"
                android:gravity="center"
    
               android:layout_marginLeft="150dp"
                android:layout_toRightOf="@id/textView9"
                android:layout_below="@id/buttonPlayOrder">
            </androidx.appcompat.widget.AppCompatSpinner>
    
        </RelativeLayout>
        <ListView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:id="@+id/listview_main">
    
        </ListView>
    </LinearLayout>
  • 相关阅读:
    服务器错误日志
    IfcCurveBoundedSurface
    Ifc发展历史与版本介绍
    IfcCurveBoundedPlane
    IfcRationalBSplineSurfaceWithKnots
    IfcBSplineSurfaceWithKnots
    QDateTime QString
    IFC4 标准中的流程实体
    IFC 标准的定义
    MultipartFile
  • 原文地址:https://www.cnblogs.com/runningup/p/12793973.html
Copyright © 2011-2022 走看看