Stats..... To be Continue

By Austin Evans

        Hello and welcome back! As the title said the main focus for me was to continue completing the stats table. This past was probably the hardest since it was a holiday weekend and I was traveling from Florida to Illinois however, some work was done. I was able to get the counter for the Goals Complete. Although trying to get the job done was a little bit tricky with calling the class but was able to figure it out. This shows the importance of the table on how could help the app in the long run. I mainly used Stackover flow and android development documents. For the functionality of the table, I made the listen item as a TextView so I can have it update the row whenever the goal is completed. When the app is first downloaded the stats table starts out fresh but since everything is being saved to the local storage the stats table stays updated. 

       The approach for this feature is still modding into the final idea. Since we are dealing with graphs and keeping a record on the stats page I started to work with the class called. I wanted to call the CUser class since that is where the goal achieve is going to be listed. But since the code could be short to a single line I went with that. The line of code was int goal_counter = user.getM_cArchivedGoals().GetGoals().size().  This is the line of code that pulls the goal to the Stats class and just sets whatever variable that the TextView is named to setText and parse it into an int. 

    I plan on making the stats page a bit more unique. I have an idea to make the table in the stats class a click event so that when the user clicks on a row and it will show a graph of the data in said row. However, I haven't got the okay to go ahead and do that so I will have to wait and bring it up next meeting.


    

Comments

Popular posts from this blog

Time for Graphs and Stats

Up in Fire goes Firebase