LandscapeViewCalendar is a customizable personalized calendar library with a horizontal layout. Users can easily select dates by clicking on them, which are then highlighted for visual confirmation. The selected date is returned for further use, providing seamless integration into your applications.
To integrate LandscapeViewCalendar into your project, follow these simple steps:
Add the following lines at the end of your root build.gradle file:
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
Add the dependency to your app-level build.gradle file:
dependencies {
implementation 'com.github.Bhupendrapatel98:LandscapeViewCalendar:version'
}
Replace version with the specific version you want to use.
You can use the LandscapeViewCalendar in your XML layout like this:
<com.app.horizontalcalendarlib.HorizontalCalendarView
android:id="@+id/horizontalCalendarView"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
To handle date selection, implement the DateSelectedListener interface and set it as the listener for date selection:
// Set listener for date selection
horizontalCalendarView.setOnDateSelectedListener(object : DateSelectedListener {
override fun onDateSelected(date: Date?) {
// Handle date selection
// You can use the selected date here
Log.d("SeletedDate", "onDateSelected: $date")
}
})
Contributions are welcome! If you encounter any bugs or have suggestions for improvements, feel free to open an issue or submit a pull request. Let's make LandscapeViewCalendar even better together!
Now you're all set to use the LandscapeViewCalendar in your project. Enjoy the seamless date selection experience!
The LandscapeViewCalendar library is distributed under the MIT license. See the LICENSE file for details.