package com.andela.iworkout.fragments;

import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import com.andela.iworkout.R;

import me.itangqi.waveloadingview.WaveLoadingView;

public class MainActivityFragment extends Fragment {

    public MainActivityFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_main, container, false);
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        initializeComponent(view);
    }

    private void initializeComponent(View view) {
        WaveLoadingView totalPushUps = (WaveLoadingView) view.findViewById(R.id.totalPushUps);
        WaveLoadingView todaysPushUps = (WaveLoadingView) view.findViewById(R.id.todaysPushUps);
        WaveLoadingView caloriesBurned = (WaveLoadingView) view.findViewById(R.id.caloriesBurned);
        WaveLoadingView energyGained = (WaveLoadingView) view.findViewById(R.id.energyGained);


    }
}

@@ -260,16 +260,243 @@
 rkout.R;
+%0Aimport com.andela.iworkout.activities.MyApplication;%0Aimport com.andela.iworkout.repository.DayRepository;%0Aimport com.andela.iworkout.repository.DayRepositoryImplementation;%0Aimport com.andela.iworkout.repository.WorkoutManager;
 %0A%0Aimport
@@ -630,32 +630,137 @@
 ment() %7B%0A    %7D%0A%0A
+    private WorkoutManager getWorkoutManager()%7B%0A        return MyApplication.getWorkoutManager();%0A    %7D%0A%0A
     @Override%0A  
@@ -1111,17 +1111,16 @@
 State);%0A
-%0A
         
@@ -1590,16 +1590,734 @@
 ined);%0A%0A
+        totalPushUps.setCenterTitle(String.valueOf(getWorkoutManager().totalPushUps()));%0A        totalPushUps.setAmplitudeRatio(70);%0A        totalPushUps.setProgressValue(70);%0A%0A        todaysPushUps.setCenterTitle(String.valueOf(getWorkoutManager().todaysPushUps()));%0A        todaysPushUps.setAmplitudeRatio(70);%0A        todaysPushUps.setProgressValue(70);%0A%0A        caloriesBurned.setCenterTitle(String.valueOf(getWorkoutManager().caloriesBurned()));%0A        caloriesBurned.setAmplitudeRatio(10);%0A        caloriesBurned.setProgressValue(10);%0A%0A        energyGained.setCenterTitle(String.valueOf(getWorkoutManager().energyGained()));%0A        energyGained.setAmplitudeRatio(40);%0A        energyGained.setProgressValue(40);
 %0A    %7D%0A%7D

Add totalPushUps, today's PushUps, calories Burned and Energy Gained