// Path: app/src/main/java/org/clintonhealthaccess/lmis/app/models/reports/UtilizationValue.java
// @Getter
// @ToString
// public class UtilizationValue {
//     int day;
//     int value;
//     public UtilizationValue(int day, int value){
//         this.day = day;
//         this.value = value;
//     }
// }


import android.content.Context;
import android.graphics.Typeface;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
import org.clintonhealthaccess.lmis.app.R;
import org.clintonhealthaccess.lmis.app.models.reports.UtilizationItem;
import org.clintonhealthaccess.lmis.app.models.reports.UtilizationValue;
import java.util.List;
import android.app.ActionBar;
        super(context, resource, items);
        this.resource = resource;
        this.isNamesListView = isNamesListView;
    }

    private static LinearLayout.LayoutParams getLayoutParams() {
        LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(50,
                ViewGroup.LayoutParams.WRAP_CONTENT, 1);
        params.setMargins(0, 0, 5, 0);
        return params;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        LayoutInflater inflater = (LayoutInflater) getContext()
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        LinearLayout linearLayout = (LinearLayout) inflater.inflate(resource, parent, false);
        UtilizationItem item = getItem(position);


        if (isNamesListView) {
            TextView textView = new TextView(getContext());
            textView.setText(item.getName());
            textView.setMaxLines(1);
            textView.setSingleLine();
            textView.setEllipsize(TextUtils.TruncateAt.END);
            textView.setTextColor(getContext().getResources().getColor(R.color.black));
            setBold(position, textView);
            linearLayout.addView(textView);
        } else {
// Path: app/src/main/java/org/clintonhealthaccess/lmis/app/models/reports/UtilizationValue.java
// @Getter
// @ToString
// public class UtilizationValue {
//     int day;
//     int value;
//     public UtilizationValue(int day, int value){
//         this.day = day;
//         this.value = value;
//     }
// }


// Path: app/src/main/java/org/clintonhealthaccess/lmis/app/adapters/reports/MonthlyVaccineUtilizationReportAdapter.java
import android.content.Context;
import android.graphics.Typeface;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
import org.clintonhealthaccess.lmis.app.R;
import org.clintonhealthaccess.lmis.app.models.reports.UtilizationItem;
import org.clintonhealthaccess.lmis.app.models.reports.UtilizationValue;
import java.util.List;
import android.app.ActionBar;

        super(context, resource, items);
        this.resource = resource;
        this.isNamesListView = isNamesListView;
    }

    private static LinearLayout.LayoutParams getLayoutParams() {
        LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(50,
                ViewGroup.LayoutParams.WRAP_CONTENT, 1);
        params.setMargins(0, 0, 5, 0);
        return params;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        LayoutInflater inflater = (LayoutInflater) getContext()
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        LinearLayout linearLayout = (LinearLayout) inflater.inflate(resource, parent, false);
        UtilizationItem item = getItem(position);


        if (isNamesListView) {
            TextView textView = new TextView(getContext());
            textView.setText(item.getName());
            textView.setMaxLines(1);
            textView.setSingleLine();
            textView.setEllipsize(TextUtils.TruncateAt.END);
            textView.setTextColor(getContext().getResources().getColor(R.color.black));
            setBold(position, textView);
            linearLayout.addView(textView);
        } else {
            for (UtilizationValue value : item.getUtilizationValues()) {