合并注释 #5

Merged
p9j8zlmnf merged 1 commits from chh into master 2 years ago

@ -42,8 +42,14 @@ public class NotesListItem extends LinearLayout {
private CheckBox mCheckBox;
public NotesListItem(Context context) {
super(context);
inflate(context, R.layout.note_item, this);
super(context);/**
super()
*/
inflate(context, R.layout.note_item, this);/**
Inflatexml,xmlrlayout
findViewByIdcontentViewIDView;
*/
mAlert = (ImageView) findViewById(R.id.iv_alert_icon);
mTitle = (TextView) findViewById(R.id.tv_title);
mTime = (TextView) findViewById(R.id.tv_time);
@ -59,7 +65,9 @@ public class NotesListItem extends LinearLayout {
mCheckBox.setVisibility(View.GONE);
}
mItemData = data;
mItemData = data;/**
dataididid
*/
if (data.getId() == Notes.ID_CALL_RECORD_FOLDER) {
mCallName.setVisibility(View.GONE);
mAlert.setVisibility(View.VISIBLE);
@ -97,6 +105,10 @@ public class NotesListItem extends LinearLayout {
}
}
}
/**
* data
*/
mTime.setText(DateUtils.getRelativeTimeSpanString(data.getModifiedDate()));
setBackground(data);
@ -119,6 +131,9 @@ public class NotesListItem extends LinearLayout {
setBackgroundResource(NoteItemBgResources.getNoteBgNormalRes(id));
}
} else {
/**
* note
*/
setBackgroundResource(NoteItemBgResources.getFolderBgRes());
}
}

Loading…
Cancel
Save