mengfanrong

先看效果图:


使用说明:

在布局文件里:

<com.squareup.timessquare.CalendarPickerView
    android:id="@+id/calendar_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    />

在Java代码中:

Calendar nextYear = Calendar.getInstance();
nextYear.add(Calendar.YEAR, 1);

CalendarPickerView calendar = (CalendarPickerView) findViewById(R.id.calendar_view);
Date today = new Date();
calendar.init(today, nextYear.getTime())
    .withSelectedDate(today);

源代码下载

分类:

技术点:

相关文章:

  • 2021-11-12
  • 2021-12-10
  • 2021-12-15
  • 2021-12-15
  • 2021-12-22
  • 2021-12-11
猜你喜欢
  • 2021-12-02
  • 2021-11-27
  • 2021-11-27
  • 2022-01-11
  • 2022-12-23
  • 2021-12-03
  • 2021-11-01
相关资源
相似解决方案