如何创建滚动选项卡日历,因此当用户单击一周中的任何一天时,新选项卡将显示像这样的图像 像这样的图像http://imgur.com/pXMrFmn 任何示例或应用程序你知道哪个会这样做???我想创建具有这种类型日历的应用程序,因此当用户单击任何日期时,日期数据将显示帮助我。]
DateFormat fmtDateAndTime = DateFormat.getDateInstance();
Calendar myCalendar = Calendar.getInstance();
DatePickerDialog.OnDateSetListener d = new DatePickerDialog.OnDateSetListener() {
public void onDateSet(DatePicker view, int year, int monthOfYear,int dayOfMonth) {
myCalendar.set(Calendar.YEAR, year);
myCalendar.set(Calendar.MONTH, monthOfYear);
myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);
edtKeyword.setText( (monthOfYear + 1) + "-" + dayOfMonth + "-" + year);
edtKeyword.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
new DatePickerDialog(MenuList.this, d, myCalendar
.get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),
myCalendar.get(Calendar.DAY_OF_MONTH)).show();
mYear = myCalendar.get(Calendar.YEAR);
mMonth = myCalendar.get(Calendar.MONTH);
mDay = myCalendar.get(Calendar.DAY_OF_MONTH);
selectedDate= mDay+"-"+mMonth+"-"+mYear;
edtKeyword.setText(selectedDate);
edtKeyword.invalidate();
}
});