<ImageView
android:id=“@+id/fg”
android:layout_width=“wrap_content”
android:layout_height=“75dip”
android:layout_toLeftOf=“@+id/call_btn”
android:background=“@drawable/black_bg” />
<TextView
android:id=“@+id/time”
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:layout_centerVertical=“true”
android:layout_toLeftOf=“@+id/fg”
android:textColor=“#ffffff” />
定义实体类:
/Contact_Demo/src/com/suntek/contact/model/CallLogBean.java
package com.suntek.contact.model;
/**
-
通话记录实体类
-
@author Administrator
*/
public class CallLogBean {
private int id;
private String name; // 名称
private String number; // 号码
private String date; // 日期
private int type; // 来电:1,拨出:2,未接:3
private int count; // 通话次数
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
}
/Contact_Demo/src/com/suntek/contact/adapter/DialAdapter.java