How To Use New Material Date/DateRange Picker for Android

How To Use New Material Date/DateRange Picker for Android

Hello everyone, Google recently released MaterialDatePicker: a useful new component that complies with the material design guidelines(https://material.io/components/pickers/#usage). This new component has a very interesting feature that allows you to select a date range instead of the old flow of selecting two dates: one “from” and one "to, i.e the component can be used as a DatePicker and a DateRangePicker. I was very excited about this and i wanted to use this in an update to a project i work on: to improve the user experience, sadly i could not find any examples or tutorials on using this lovely new component. So, I decided to make one, in this article I will be outlining the steps I took to make use of the MaterialDatePicker. This would be a really short article since, the MaterialDatePicker is really very easy to use.