SCRUM第二阶段第二天

今天主要任务是导入页以及主页的完善

效果图:

 

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".SplashActivity"
    android:background="@color/colorPrimary">



    <TextView
        android:id="@+id/textView8"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"

        android:text="跑出一片天"
        android:textStyle="bold"
        android:textSize="30sp"
        android:textColor="#fff"
        />

    <Button
        android:id="@+id/buttongo"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal|bottom"
        android:text="Go"
        android:layout_marginBottom="20dp"
        android:textColor="@color/black"
        android:background="@drawable/button_splash_01"/>

</FrameLayout>

 

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".fragment.SummaryFragment"
android:background="#FFC0CB"
    android:orientation="vertical"
    android:layout_margin="10dp"
    >


    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="70dp"

        android:orientation="horizontal"
        android:layout_marginTop="20dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:background="@drawable/blanck_shape"
        android:padding="10dp"
        >

                <RelativeLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.2"
                >
                    <ImageView
                        android:id="@+id/buttonShop"
                        android:layout_width="wrap_content"
                        android:layout_height="35dp"

                        android:src="@drawable/food" />
                    <TextView
                        android:id="@+id/textView25"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/buttonShop"
                        android:layout_marginLeft="40dp"
                        android:textSize="10sp"
                        android:text="外卖"
                        />
                </RelativeLayout>
                <RelativeLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.2"
                    >
                    <ImageView
                    android:id="@+id/buttonPrint"
                    android:layout_width="wrap_content"
                    android:layout_height="35dp"

                    android:src="@drawable/poblish" />
                    <TextView
                        android:id="@+id/textView26"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/buttonPrint"
                        android:layout_marginLeft="40dp"
                        android:text="打印"
                        android:textSize="10sp"/>

                </RelativeLayout>

                <RelativeLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.2"
                    >
                    <ImageView
                        android:id="@+id/buttonDeliver"
                        android:layout_width="wrap_content"
                        android:layout_height="35dp"

                        android:src="@drawable/delivery" />

                    <TextView
                        android:id="@+id/textView24"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/buttonDeliver"
                        android:layout_marginLeft="40dp"
                        android:textSize="10sp"
                        android:text="快递" />
                </RelativeLayout>
                <RelativeLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.2"
                    >
                    <ImageView
                        android:id="@+id/buttonElse"
                        android:layout_width="wrap_content"
                        android:layout_height="35dp"


                        android:src="@drawable/other" />

                    <TextView
                        android:id="@+id/textView29"
                        android:layout_width="wrap_content"
                        android:layout_height="40dp"
                        android:layout_below="@id/buttonElse"
                        android:layout_marginLeft="40dp"
                        android:textSize="10sp"

                        android:text="其他" />
                </RelativeLayout>










    </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="@drawable/button_selector_01"/>


        <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="@drawable/shape_orange"
            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="@drawable/shape_blue"
            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:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:id="@+id/listview_main">

    </ListView>
</LinearLayout>

 

posted @ 2020-05-21 13:04  海南之风  阅读(139)  评论(0编辑  收藏  举报