### Instantiate and Configure SpinnerDatePickerDialog Source: https://github.com/drawers/spinnerdatepicker/blob/master/README.md This Java code demonstrates how to programmatically create and display a `SpinnerDatePickerDialog`. It shows how to set the context, callback, apply a custom `NumberPicker` theme, display a title, control the visibility of the day spinner, and define default, maximum, and minimum selectable dates. ```Java new SpinnerDatePickerDialogBuilder() .context(MainActivity.this) .callback(MainActivity.this) .spinnerTheme(R.style.NumberPickerStyle) .showTitle(true) .customTitle("My custom title") .showDaySpinner(true) .defaultDate(2017, 0, 1) .maxDate(2020, 0, 1) .minDate(2000, 0, 1) .build() .show(); ``` -------------------------------- ### Add Jitpack Repository to Project-Level Gradle Source: https://github.com/drawers/spinnerdatepicker/blob/master/README.md This Gradle configuration snippet must be added to your project's top-level `build.gradle` file within the `allprojects` block. It declares the Jitpack Maven repository, which is necessary for resolving the `SpinnerDatePicker` library dependency. ```Gradle allprojects { repositories { maven { url "https://jitpack.io" } } } ``` -------------------------------- ### Add SpinnerDatePicker Dependency to App-Level Gradle Source: https://github.com/drawers/spinnerdatepicker/blob/master/README.md This Gradle dependency declaration should be added to your app module's `build.gradle` file within the `dependencies` block. It includes the `SpinnerDatePicker` library in your Android application. ```Gradle dependencies { compile 'com.github.drawers:SpinnerDatePicker:2.0.1' } ``` -------------------------------- ### Define Custom NumberPicker Style Source: https://github.com/drawers/spinnerdatepicker/blob/master/README.md This XML snippet defines a custom style named `NumberPickerStyle` for the `NumberPicker` components within the `SpinnerDatePicker`. It allows customization of text size, text color, and the color of the horizontal dividers (`colorControlNormal`). This style should be placed in `styles.xml`. ```XML ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.