This app is a sort of simplified version of a full-blown produce seasons app released on the Play store. With this short project, I wanted to explore tabbed navigation with swipe views to represent two consecutive months worth of produce that was currently in season this month and the next.
Unlike previous projects of this nature, this app would automatically pull the current month from the system clock in order to load the corresponding produce lists. This was achieved by declaring a Calendar object in order to retrieve the Calendar's DAY_OF_MONTH parameter. // Retrieving Calendar instance and saving to Calendar object Calendar calObj = Calendar.getInstance(); int currentMonth; // obtaining current month - 0-11 for Jan-Dec currentMonthNumber = calObj.get(Calendar.DAY_OF_MONTH); The actionbar was styled and generated with the first-time use of the nifty Android Action Bar Style Generator. Comments are closed.
|
AuthorExploring Android and mobile web design, security, and development. Archives
March 2021
Categories |