public void setUpHeader(View header) { Typeface robotoBold = AndroidUtils.robotoBold(this.context); TextView patientID = (TextView) header.findViewById(R.id.menu_patient_id); TextView patientIDSubtitle = (TextView) header.findViewById(R.id.menu_subtitle_patient_id); TextView nextVisit = (TextView) header.findViewById(R.id.menu_next_visit); TextView nextVisitSubtitle = (TextView) header.findViewById(R.id.menu_subtitle_next_visit); TextView week = (TextView) header.findViewById(R.id.menu_week); TextView weekSubtitle = (TextView) header.findViewById(R.id.menu_subtitle_week); patientID.setText(DataManager.getCurrentPatient().getUserID()); patientID.setTypeface(robotoBold); patientIDSubtitle.setText(context.getResources().getString(R.string.patient_id_subtitle)); // set localized date for next visit Locale locale = context.getResources().getConfiguration().locale; Date nextDate = DataManager.getCurrentPatient().getDateOfNextVisit(); nextVisit.setText(Utils.localizedDateWithoutYear(nextDate, locale)); nextVisit.setTypeface(robotoBold); nextVisitSubtitle.setText(context.getResources().getString(R.string.next_visit_subtitle)); week.setText( "Visit " + DataManager.getCurrentPatient().getVisitsUsed() + "/" + DataManager.getCurrentPatient().getVisitsTotal()); week.setTypeface(robotoBold); weekSubtitle.setText(context.getResources().getString(R.string.week_subtitle)); }