Back to project page BonetCalendarView.
The source code is released under:
Apache License
If you think the Android project BonetCalendarView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bonet.example.bonetcalendarviewactivity; /* ww w .ja v a2 s. c o m*/ import java.text.DateFormatSymbols; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.bonet.views.BtCalendarView; import com.bonet.views.MonthListAdapter; public class CustomYearAdapter extends MonthListAdapter { public CustomYearAdapter(BtCalendarView parent, int year) { super(parent, year); } @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if(null == v){ v = LayoutInflater.from(getContext()).inflate(R.layout.weekday_textview, null); } TextView tv = (TextView) v; tv.setText(DateFormatSymbols.getInstance().getShortMonths()[position]); return v; } }