Android自定义日历控件:JKCalendar

jopen 10年前

Accupass共享的Android自定义日历视图。

((JKCalendar) findViewById(R.id.main_calendar)).step1("2014", "10", "2014", "12");  ((JKCalendar) findViewById(R.id.main_calendar)).step2(new CalendarConfig()                .setLAYOUT_COLOR(Color.BLUE)                .setHIDE_COLOR(Color.RED)                .setOPEN_BIG_CALENDAR("V")                .setCLOSE_BIG_CALENDAR("X")                .setPRE_MONTH_ARROW("<")                .setNEXT_MONTH_ARROW(">"));  ((JKCalendar) findViewById(R.id.main_calendar)).setBelowView(LayoutInflater.from(this).inflate(R.layout.layout,null));  ((JKCalendar) findViewById(R.id.main_calendar)).setOnCalendarListener(new JKCalendar.OnCalendarListener() {         @Override         public void onCalendarSelected(Calendar calendar) {                Toast.makeText(MainActivity.this,calendar.getTime().toString(),Toast.LENGTH_LONG).show();         }  });
<jakevin.com.jkcalendar_lib.ui.JKCalendar          android:id="@+id/main_calendar"          android:layout_width="match_parent"          android:layout_height="wrap_content"/>

项目主页:http://www.open-open.com/lib/view/home/1417578355777