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>
  • 相关阅读:
    ES中对应的SQL的count(distinct 列名) java实现
    maven使用
    自旋锁
    Java手写死锁并用jps和jstack查看
    已知二叉树前序和中序,算法写出后续遍历的结果
    Idea里搭建SpringMVC项目,部署的包下没有lib
    Spring配置文件中关于bean标签的id属性和name属性的说明
    ORA-12519: TNS:no appropriate service handler found 解决
    springmvc常用注解标签详解
    Spring/SpringMvc 配置文件常用标签解释
  • 原文地址:https://www.cnblogs.com/dty602511/p/14913187.html
Copyright © 2011-2022 走看看