我有一个日期列表,我想在 calendarview 上用红色着色。我能怎么做 ?
我的活动..
public class Calendario extends Activity {
RelativeLayout rl;
final Calendar calendar = Calendar.getInstance();
CalendarView cal;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.calendar);
rl = (RelativeLayout) findViewById(R.id.rl);
cal = new CalendarView(Calendario.this);
rl.addView(cal);
cal.setOnDateChangeListener(new OnDateChangeListener() {
@Override
public void onSelectedDayChange(CalendarView view, int year, int month,
int dayOfMonth) {
// TODO Auto-generated method stub
}
});
}
}
我必须添加什么代码才能为日期着色?