NestedCalendar
Make MaterialCalendarView can be nested scroll, and smooth switch to week or month mode.
Install / Use
npx skills add NanBox/NestedCalendarInstalls into whichever agent you are using.
README
NestedCalendar
Make MaterialCalendarView can be nested scroll, and smooth switch to week or month mode.

Usage
Add the dependencies to your gradle file:
dependencies {
implementation 'com.nanbox:NestedCalendar:1.3.0'
}
Use in your layout file:
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.prolificinteractive.materialcalendarview.MaterialCalendarView
android:id="@+id/calendar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_behavior="@string/calendar_behavior"
app:mcv_showOtherDates="all" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="110dp"
android:background="@color/color_ee"
app:layout_behavior="@string/calendar_scrolling_behavior"
tools:listitem="@layout/item_list" />
<com.nanbox.nestedcalendar.view.WeekTitleView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#fafafa" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
Add listener:
calendarView.setOnDateChangedListener(new OnDateSelectedListener() {
@Override
public void onDateSelected(MaterialCalendarView widget,
CalendarDay date,
boolean selected) {
Calendar calendar = date.getCalendar();
calendarBehavior.setWeekOfMonth(calendar.get(Calendar.WEEK_OF_MONTH));
}
});
Calendar setting:
About MaterialCalendarView, you can see more usage at:
https://github.com/prolificinteractive/material-calendarview
Thanks to the developers.
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR
