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>
  • 相关阅读:
    OpenCv 人脸识别 基础
    C++ 0x std::async 的应用
    C++ 0x 使用condition_variable 与 Mutex 同步两个线程
    Unity C# 调用 C++ DLL 并在 DLL 中调用 C# 的回调函数
    C++ 11 中的 Lambda 表达式的使用
    DirectShow 制作在Unity3D中可以设置进度的视频播放插件
    Async/Await 如何通过同步的方式实现异步
    React Native 开源项目汇总
    ES6 Promise的理解与简单实现(链接)
    深刻理解BFC(链接)
  • 原文地址:https://www.cnblogs.com/dty602511/p/14913187.html
Copyright © 2011-2022 走看看