zoukankan      html  css  js  c++  java
  • 2.27 账本开发6

    activity_main

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    
        <ListView
            android:id="@+id/list_view"
            android:layout_width="wrap_content"
            android:layout_height="550dp"
            />
    
        <ImageButton
            android:id="@+id/add"
            android:onClick="addAccount"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:scaleType="centerInside"
            android:layout_centerHorizontal="true"
            android:background="#00FF0000"
            app:srcCompat="@drawable/tianjia"
            android:layout_below="@+id/list_view" />
    </RelativeLayout>

    activity_new_cost

    <?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"
        android:gravity="center">
    
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="消费项目"
            android:textColor="#8BC34A"
            android:textSize="30sp">
        </TextView>
    
        <EditText
            android:id="@+id/et_cost_title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="4dp"
            android:hint=":可以不填写"
            android:textColor="#0C0A07"
            android:textSize="30sp" />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="消费金额"
            android:textColor="#C34A4A"
            android:textSize="30sp">  </TextView>
    
        <EditText
            android:id="@+id/et_cost_money"
            android:inputType="number|numberDecimal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="4dp"
            android:textSize="30sp"
            android:hint=":具体数额,填写数字"
            android:textColor="#161012"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="消费日期"
            android:textColor="#03A9F4"
            android:textSize="30sp">  </TextView>
        <DatePicker
            android:id="@+id/dp_cost_date"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="8dp"
            android:datePickerMode="spinner"
            android:calendarViewShown="false"
            />
    
        <Button
            android:onClick="okButton"
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:textSize="20sp"
            android:textColor="#000000"
            android:background="@drawable/bg_btn4"
            android:layout_below="@+id/btn_3"
            android:layout_marginTop="10dp"
            android:text="确认"
            android:layout_marginLeft="40dp"
            android:layout_marginRight="40dp"
            />
    </LinearLayout>
  • 相关阅读:
    servlet上传图片 服务器路径(转)
    图片和提交servlet的相对和绝对路径
    Intel 的面试经历中国研究院
    CentOS-6.5-x86_64 最小化安装,已安装包的总数,这些包?
    西门子PLC学习笔记8-(计时器)
    这个周末我太累了
    windows7股票的,win8残疾人,安装Han澳大利亚sinoxn个时间,sinox它支持大多数windows软体
    net.sf.json 迄今 时刻 格式 办法
    ar命令提取.a时刻,一个错误 is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
    POJ 2187: Beauty Contest(旋转卡)
  • 原文地址:https://www.cnblogs.com/dty602511/p/14913187.html
Copyright © 2011-2022 走看看