Does compose material provide a Date Picker which is only for year/month without a day selection? I’ve been looking at the material3 latest alpha release and it doesn’t look like it, but maybe I’m missing something 👀
a
Albert Chang
01/16/2023, 2:34 PM
Is there such component in material design? If no, I don't think there will be in compose.
s
Stylianos Gakis
01/16/2023, 2:43 PM
I’ve been trying to find one too and you are right, it doesn’t seem to exist, I feel like I must’ve dreamt seeing it or something, I was sure it exists but it’s nowhere to be found. That’s my bad 🫣
There’s also a link in there to a library someone made of different kinds of dialogs, but i admit, i have not given that a look.
s
Stylianos Gakis
01/17/2023, 9:20 AM
I ended up basically copying the entire code off of material3 library since everything aside from the DatePicker API is internal, so that I can edit the code so that it shows the year picker and everything else the same, but replaced the date grid with the month column picker as shown in the specs I linked above.
I assume this will at some point also be served from the library itself but this will suffice for now.