日历 自己复制
private String inputDate(final View v) { Calendar cal = Calendar.getInstance(); dialogCaldroidFragment=CaldroidFragment.newInstance("选择日期", cal.get(Calendar.MONTH)+1, cal.get(Calendar.YEAR)); final String[] date_str = new String[1]; dialogCaldroidFragment.setCaldroidListener(new CaldroidListener() { @Override public void onSelectDate(Date date, View view) { dialogCaldroidFragment.setBackgroundResourceForDate(R.color.light_blue,date); dialogCaldroidFragment.refreshView(); date_str[0] = String.format("%tF", date); if(v instanceof EditText){ EditText e=(EditText)v; e.setText(date_str[0]); } dialogCaldroidFragment.dismiss(); } }); dialogCaldroidFragment.show(getSupportFragmentManager(),"TAG"); return date_str[0];}