-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyadapter.java
More file actions
58 lines (48 loc) · 1.41 KB
/
Myadapter.java
File metadata and controls
58 lines (48 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package org.androidtown.memoapplication;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
public class Myadapter {
private String title;
private String body;
private long savedTime;
public Myadapter(String title,String body,long savedTime){
this.title=title;
this.body=body;
this.savedTime=savedTime;
}
public void setTitle(String title) {
this.title = title;
}
public void setBody(String body) {
this.body = body;
}
public void setSavedTime(long savedTime) {
this.savedTime = savedTime;
}
public String getTitle() {
return title;
}
public String getBody() {
return body;
}
public long getSavedTime() {
return savedTime;
}
public String getTextSavedTime(){
return new SimpleDateFormat("YYYY-MM-dd HH:mm:ss").format(savedTime);
}
public String toString(){
return "제목:"+title+"\n"
+"내용:"+body+"\n"
+"등록시간"+new SimpleDateFormat("YYYY-MM-dd HH:mm:ss").format(savedTime)+"\n";
}
}