Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复Form中类变量导致的数据修改错误 #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .idea/modules.xml

This file was deleted.

16 changes: 8 additions & 8 deletions app/src/main/java/com/bin/david/smarttable/FormModeActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ public void onClick(View v) {
editText = (EditText)findViewById(R.id.edit_query) ;
Form[][] forms = {
{
new Form("姓名", Paint.Align.LEFT), Form.Empty,
new Form("性别", Paint.Align.LEFT), Form.Empty,
new Form("出生日期", Paint.Align.LEFT),Form.Empty,
new Form("民族", Paint.Align.LEFT), Form.Empty,
new Form("婚否", Paint.Align.LEFT), Form.Empty,
new Form("姓名", Paint.Align.LEFT), new Form(""),
new Form("性别", Paint.Align.LEFT), new Form(""),
new Form("出生日期", Paint.Align.LEFT),new Form(""),
new Form("民族", Paint.Align.LEFT), new Form(""),
new Form("婚否", Paint.Align.LEFT), new Form(""),
new Form(1, 4, "照片")
},
{
new Form("学历", Paint.Align.LEFT), Form.Empty,
new Form("学历", Paint.Align.LEFT), new Form(""),
new Form("专业", Paint.Align.LEFT), new Form(3, 1, ""),
new Form("何种语言", Paint.Align.LEFT), new Form(3, 1, "")
},
{
new Form("籍贯", Paint.Align.LEFT), Form.Empty,
new Form("籍贯", Paint.Align.LEFT), new Form(""),
new Form(2, 1, "户口所在地", Paint.Align.LEFT), new Form(3, 1, ""),
Form.Empty, new Form(2, 1, "")
new Form(""), new Form(2, 1, "")
},
{
new Form(2, 1, "现住址电话", Paint.Align.LEFT), new Form(8, 1, "")
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/bin/david/smarttable/bean/Form.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class Form implements IForm {
private int spanWidthSize =1;
private int spanHeightSize = 1;
private String name;
public static Form Empty = new Form("");
private Paint.Align align;
public Form(int spanWidthSize, int spanHeightSize, String name) {
this.spanWidthSize = spanWidthSize;
Expand Down