diff --git a/ExtendedCalendarView/src/com/tyczj/extendedcalendarview/CalendarAdapter.java b/ExtendedCalendarView/src/com/tyczj/extendedcalendarview/CalendarAdapter.java index 50c1f27..847f38e 100644 --- a/ExtendedCalendarView/src/com/tyczj/extendedcalendarview/CalendarAdapter.java +++ b/ExtendedCalendarView/src/com/tyczj/extendedcalendarview/CalendarAdapter.java @@ -76,20 +76,23 @@ public View getView(final int position, View convertView, ViewGroup parent) { v = vi.inflate(R.layout.day_of_week, null); TextView day = (TextView)v.findViewById(R.id.textView1); + DateFormatSymbols symbols = new DateFormatSymbols(Locale.getDefault()); + String[] dayNames = symbols.getShortWeekdays(); + if(position == 0){ - day.setText(R.string.sunday); + day.setText(dayNames[Calendar.SUNDAY]); }else if(position == 1){ - day.setText(R.string.monday); + day.setText(dayNames[Calendar.MONDAY]); }else if(position == 2){ - day.setText(R.string.tuesday); + day.setText(dayNames[Calendar.TUESDAY]); }else if(position == 3){ - day.setText(R.string.wednesday); + day.setText(dayNames[Calendar.WEDNESDAY]); }else if(position == 4){ - day.setText(R.string.thursday); + day.setText(dayNames[Calendar.THURSDAY]); }else if(position == 5){ - day.setText(R.string.friday); + day.setText(dayNames[Calendar.FRIDAY]); }else if(position == 6){ - day.setText(R.string.saturday); + day.setText(dayNames[Calendar.SATURDAY]); } }else{