TimeSquare / CalendarPickerView – Android Studio Tutorial
In this video we will use the TimeSquare library to create a CalendarPickerView, which is a nice alternative to the standart DatePickerDialog. We can set a minDate and a maxDate for the range and get our selected date back by setting an OnDateSelectedListener on it. We will format this date by using the DateFormat class and also get the single year, month and day with the help of the Calendar class. You can also select and return more than 1 date by setting the mode to SelectionMode.RANGE and then get a List of dates back by calling getSelectedDates.
Dependency:
https://github.com/square/android-times-square
Example code:
https://gist.github.com/codinginflow/5ee4db9ad1fde11f2cc3d6ebe3a0f192
____________________
💻 Find the BEST programming tutorials on TutHub:
https://tuthub.io
⭐ Get my MVVM Caching Course now:
https://codinginflow.com/caching
❗ Subscribe to the channel:
https://www.youtube.com/c/codinginflo…
📨 Subscribe to the Coding in Flow newsletter:
https://codinginflow.com/newsletter
❓ Join our free developer community:
https://discord.gg/TSnMvmc
📣 Follow Coding in Flow on other sites:
Facebook: https://www.facebook.com/codinginflow
Instagram: https://www.instagram.com/codinginflow
TikTok: https://www.tiktok.com/@codinginflow
Twitter: https://twitter.com/codinginflow
Github: https://github.com/codinginflow
💰 Business requests, sponsoring, etc.: info@codinginflow.com
Views :36967
android studio