Body Metrics

 Written By: Quincy Williams

This week I worked on the Body Metrics activity. This activity will allow for users to be able to add there body metrics to the application and then the application will take that data and perform calculations for the user to see, based on the most common formulas that the people will usually like to know when they are on a fitness journey to show progress.


To develop this, I created edit text items to hold the data, and text views to identify the different fields that the edit texts will preform calculations on. The last three fields are not editable as they will be filled with data after calculations are completed. In the background, in our Utils java file, we have functions that will be called that will complete the calculations for BMI, Lean Body Mass, and Body Fat %. 

Example Body Metric Function




The activity will also be able to use the metric system setting in the application, that will convert fields that use imperial values to use metric values. The text footers will indicate that the system in using metric system by changing to cm, and kg instead of feet/in and pounds. 

Comments