It happened again.
This week I focused on making a calendar, with the idea that the calendar would be on the main screen, and that you could access any day's meal and workout plans at a glance. So I started making a a calendar, using Youtube guides to help me get started.
Three hours of work later I find out there's a plugin that will make the calendar for you called calendarView. And with simply a few lined of code in the activity_main.xml.
I love programming. I love being forced to be humble and discovering I took the hard way. This isn't Stockholm Syndrome at all talking.
Joking aside, I am a little proud of my week. I managed to make a a calendar in the app, and it responds when I select different dates. Tomorrow I am going to work on a modification of the original idea of having the calendar display the plan. What I instead want to do now is display the meal and workout plans in the empty space under the calendar.
Nothing happens when I am clicking the different dates. Apparently there's something similar to an onClickListener called onDateSelector or something along those lines, and that can allow you to set actions to occur when you select a certain date. I also want to be able to change to a week veiw. But that's for later, after I get the calendar actually functioning.
Until then, I will just keep plugging away and hope it comes to the point where I eventually can convince myself that I know what I am doing.
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.