private void initTextView(Message item, View view) { ViewTag tag = (ViewTag) view.getTag(); tag.content.setText(MessageFactory.getMessageContent(item)); if (item.getShowTime() == 1) { tag.time.setVisibility(View.VISIBLE); tag.time.setText(TimeUtil.getTime(Long.parseLong(item.getMessageTime()))); } else { tag.time.setVisibility(View.GONE); } }
private void initSystemMessage(Message item, View view) { ViewTag tag = (ViewTag) view.getTag(); tag.content.setText(MessageFactory.getMessageContent(item)); tag.time.setVisibility(View.VISIBLE); tag.time.setText(TimeUtil.getTime(Long.parseLong(item.getMessageTime()))); }