Debugging, Exporting, and making changes to the radar chart
By Austin Evans
This week I started something new, I dove right this learning how to export a CSV file. For the file, it's a generic file being saved as a CSV file. Since most workout apps have a opion to export either their body metrics or the exercise. I was able to get the app to open a window to choose where the file will be saved but I couldn't get it to save as of right now.
Next I changed the way the look how the by having the radar data pop out. I kept the default color of the chart and used the color blue to filled out the line. I also was able to get the row click in the stats table up and running. The rows doesn't go to anywhere but just shows a toast message showing that it works.
How I appoarch the problem for the CSV file is by finding documents able CSV files in java. However, I found that a youtube video by a youtuber named Tech Tribe. He helped me understand how the CSV file in Java works. It's a quick video but easy to understand. Another way I was able to get a better understanding is by reaching out to the github docs.
For the graph I orginally had the web color set to blue but getting rid of that line of code an having the chart be the default color allowed the chart to have the data show up better. Next I set the actual line color to the blue that is in the set color pallet for the app and having it filled with the same color.
For the stats table problem I oginally had a method called rowClick asign to an OnClicked call in the xml file for the table. But since I am working in a fragment and not in activity going with that idea wouldn't work. In the fragment there is a method where the click events should go. This method is called OnCreateView where onClick listener will go. I made each row there on click event and having a toast pop up whenever a row is clicked.
Comments
Post a Comment