private void setAlertLayout(View layout, TextView typeView, AlertDTO alert) { typeView.setText(alert.ancServiceType().shortName()); final AlertStatus alertStatus = alert.alertStatus(); layout.setBackgroundResource(alertStatus.backgroundColorResourceId()); typeView.setTextColor(alertStatus.fontColor()); }
private void setAlertDate(TextView dateView, AlertDTO alert, String serviceDate) { if (StringUtils.isNotEmpty(serviceDate)) dateView.setText(serviceDate); else dateView.setText(getInstance().getStringResource(R.string.str_due) + alert.shortDate()); dateView.setTextColor(alert.alertStatus().fontColor()); }