博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
OneZero第二周第二次站立会议(2016.3.29)
阅读量:6994 次
发布时间:2019-06-27

本文共 5982 字,大约阅读时间需要 19 分钟。

会议时间:2016年3月29日  13:05~13:16

会议成员:冉华,张敏,王巍,夏一鸣。

会议目的:汇报前一天工作,全体成员评论,确定会后修改内容或分配下一步任务。

会议内容:以下是会议插图

1.录入界面已经绘制完毕,由张、夏负责。如下图

activity代码如下

1 package com.onezero.account;  2   3 import android.app.Activity;  4 import android.content.Intent;  5   6 import java.text.SimpleDateFormat;  7 import java.util.Date;  8   9 import android.os.Bundle; 10 import android.preference.EditTextPreference; 11 import android.util.Log; 12 import android.view.Menu; 13 import android.view.MenuItem; 14 import android.view.View; 15 import android.widget.Button; 16 import android.widget.EditText; 17 import android.widget.ImageButton; 18 import android.widget.TextView; 19 import android.widget.Toast; 20  21 public class add extends Activity { 22  23     @Override 24     protected void onCreate(Bundle savedInstanceState) { 25         super.onCreate(savedInstanceState); 26         setContentView(R.layout.add_main); 27         // 显示当前时间 28         SimpleDateFormat formatter = new SimpleDateFormat( 29                 "yyyy年MM月dd日    HH:mm:ss     "); 30         Date curDate = new Date(System.currentTimeMillis());// 获取当前时间 31         String str = formatter.format(curDate); 32  33         TextView mTime = (TextView) findViewById(R.id.mytime); 34         mTime.setText(str); 35  36         // 实现事件类型选择,点击并改变显示。 37         final TextView accounttype = (TextView) findViewById(R.id.accounttype); 38         // 一般 39         Button button1 = (Button) findViewById(R.id.button1); 40         button1.setOnClickListener(new Button.OnClickListener() { 41             public void onClick(View v) { 42                 Button button1 = (Button) findViewById(R.id.button1); 43                 accounttype.setText(button1.getText()); 44  45             } 46         }); 47         // 餐饮 48         Button button2 = (Button) findViewById(R.id.button2); 49         button2.setOnClickListener(new Button.OnClickListener() { 50             public void onClick(View v) { 51                 Button button2 = (Button) findViewById(R.id.button2); 52                 accounttype.setText(button2.getText()); 53  54             } 55         }); 56  57         // 购物 58         Button button3 = (Button) findViewById(R.id.button3); 59         button3.setOnClickListener(new Button.OnClickListener() { 60             public void onClick(View v) { 61                 Button button3 = (Button) findViewById(R.id.button3); 62                 accounttype.setText(button3.getText()); 63  64             } 65         }); 66         // 交通 67         Button button4 = (Button) findViewById(R.id.button4); 68         button4.setOnClickListener(new Button.OnClickListener() { 69             public void onClick(View v) { 70                 Button button4 = (Button) findViewById(R.id.button4); 71                 accounttype.setText(button4.getText()); 72  73             } 74         }); 75         // 娱乐 76         Button button5 = (Button) findViewById(R.id.button5); 77         button5.setOnClickListener(new Button.OnClickListener() { 78             public void onClick(View v) { 79                 Button button5 = (Button) findViewById(R.id.button5); 80                 accounttype.setText(button5.getText()); 81  82             } 83         }); 84  85         // 医疗 86         Button button6 = (Button) findViewById(R.id.button6); 87         button6.setOnClickListener(new Button.OnClickListener() { 88             public void onClick(View v) { 89                 Button button6 = (Button) findViewById(R.id.button6); 90                 accounttype.setText(button6.getText()); 91  92             } 93         }); 94  95         Button button7 = (Button) findViewById(R.id.button7); 96         button7.setOnClickListener(new Button.OnClickListener() { 97             public void onClick(View v) { 98                 OK(); 99 100             }101         });102 103     }104 105     public boolean onCreateOptionsMenu(Menu menu) {106         // Inflate the menu; this adds items to the action bar if it is present.107         getMenuInflater().inflate(R.menu.add, menu);108         return true;109     }110 111     @Override112     public boolean onOptionsItemSelected(MenuItem item) {113         // Handle action bar item clicks here. The action bar will114         // automatically handle clicks on the Home/Up button, so long115         // as you specify a parent activity in AndroidManifest.xml.116         117         // 获取“录入”的返回键,并执行返回。118         int id = item.getItemId();119         if (id == R.id.action_add_back) {120 121             onBackPressed();122         }123 124         return super.onOptionsItemSelected(item);125     }126 127     // OK按钮128     public void OK() {129 130         TextView mytime = (TextView) findViewById(R.id.mytime);131         String text1 = mytime.getText().toString();132 133         TextView accounttype = (TextView) findViewById(R.id.accounttype);134         String text2 = accounttype.getText().toString();135 136         EditText editText1 = (EditText) findViewById(R.id.editText1);137         String text3 = editText1.getText().toString();138 139         EditText editText2 = (EditText) findViewById(R.id.editText2);140         String text4 = editText2.getText().toString();141 142         String sFinal = text2 + text1 + text3 + text4;143 144         Log.e("!!!!!!!!!!", sFinal);145         146         onBackPressed();147 148     }149 150 }
Activity Code

XML代码如下

1 
2
11 12
19 20
31 32
43 44
56 57
69 70
71
72 73
81 82
89 90
98 99
106 107
115 116
123 124
134 135
143 144
View Code

2.Sqlite数据库demo已经完成,包括增、删、改、查,由冉负责。

以下是下次站会前需完成的任务

1.Sqlite数据库方面,确定表结构和通信接口,由冉负责。

2.数据逻辑处理层,确定与前端的通信接口,由王负责。

会议体会:昨天布置的任务大家都顺利完成,继续努力。以下是本周的燃尽图。

一周很快就会过去,无奈天气反复无常,OneZero已经有两名成员先后感染风寒,但大家依旧坚守阵地,夏十分感激。

以上是OneZero第二周第二次站立会议。

 

转载于:https://www.cnblogs.com/xiaym896/p/5332784.html

你可能感兴趣的文章
Really Simple Syndication
查看>>
第十章 Scala 容器基础(十三):使用for yield转化集合
查看>>
第十章 Scala 容器基础(二十):使用reduce和fold方法遍历集合的所有元素
查看>>
Hive DDL 内部表外部表 分区 分桶 行格式 存储文件格式 概述
查看>>
MySQL 压测工具 sysbench 安装及使用
查看>>
转:在win7系统下使用TortoiseGit(乌龟git)简单操作Git@OSC
查看>>
网络安全学习站点
查看>>
第一篇博文
查看>>
让 Markdown 中的代码可以实时运行
查看>>
spring和redis的整合
查看>>
Kubernetes为何如此炙手可热?
查看>>
Spring Auto-Wiring Beans
查看>>
致那些没有打倒你的人
查看>>
开源监控系统整合Nagios+Cacti+Nconf+Npc中文版
查看>>
SeimiCrawler v0.24发布了
查看>>
腾讯微信公众平台账号类型说明
查看>>
UNIX域socket编程
查看>>
python学习---数据结构(一)
查看>>
MySQL移动数据目录出现权限问题
查看>>
android 试图 代码 关联
查看>>