【团队】 冲刺一(2/10)

昨天所做:主要是界面,还有一些提示(如金额输入不能为空)

代码是冲刺完才粘的,可能会和所说的有所不同

<?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="#f6fda3"
    android:gravity="center"
    android:orientation="vertical">

    <RadioGroup
        android:id="@+id/choose"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="25dp"
        android:orientation="horizontal">

        <RadioButton
            android:id="@+id/out"
            android:layout_width="80dp"
            android:layout_height="40dp"
            android:button="@drawable/checked_size_out"
            android:checked="true"
            android:text="支出" />

        <RadioButton
            android:id="@+id/in"
            android:layout_width="80dp"
            android:layout_height="40dp"
            android:layout_marginLeft="30dp"
            android:button="@drawable/checked_size_in"
            android:text="收入" />

    </RadioGroup>

    <Spinner
        android:id="@+id/sort"
        style="@android:style/Widget.Spinner"
        android:layout_width="216dp"
        android:layout_height="40dp"
        android:layout_marginTop="40dp"
        android:background="@android:color/background_light"
        android:gravity="center"
        android:prompt="@string/spinner_sort"
        android:spinnerMode="dialog"></Spinner>

    <Button
        android:id="@+id/btn_date"
        android:layout_width="216dp"
        android:layout_height="40dp"
        android:layout_marginTop="40dp"
        android:background="@android:color/background_light"
        android:text="请选择时间" />

    <EditText
        android:id="@+id/money"
        android:background="@android:color/background_light"
        android:layout_width="match_parent"
        android:layout_height="45dp"
        android:layout_marginTop="5dp"
        android:ems="10"
        android:focusable="false"
        android:focusableInTouchMode="false"
        android:gravity="center"
        android:hint="请输入金额"
        android:inputType="number"
        android:singleLine="true" />

    <EditText
        android:id="@+id/remark"
        android:background="@android:color/background_light"
        android:layout_marginTop="5dp"
        android:layout_width="match_parent"
        android:layout_height="45dp"
        android:ems="10"
        android:gravity="center"
        android:hint="备注"
        android:inputType="text"
        android:singleLine="true" />

</LinearLayout>

今天将做:完成昨天所做页面的数据提取,并学习mysql连接

遇到问题:

原文地址:https://www.cnblogs.com/gothic-death/p/10933239.html