@@ -0,0 +1,2855 @@
+package com.jshoresdevelopment.conversioncalculator;%0A%0Aimport android.app.Activity;%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.Fragment;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ArrayAdapter;%0Aimport android.widget.Spinner;%0Aimport android.widget.TextView;%0A%0Aimport lombok.Getter;%0Aimport lombok.Setter;%0A%0A@Getter%0A@Setter%0Apublic class ConversionFragment extends Fragment %7B%0A    private Activity mActivity;%0A    private TextView conversionHead;%0A    private Spinner convertFrom;%0A    private Spinner convertTo;%0A    private String conversionType = null;%0A%0A    /** When fragment is created */%0A    @Override%0A    public void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A    %7D%0A%0A    /** When fragment view is created */%0A    @Override%0A    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) %7B%0A        final View layout = inflater.inflate(R.layout.fragment_conversion, container, false);%0A        mActivity = getActivity();%0A%0A        conversionHead = (TextView) layout.findViewById(R.id.conversion_head);%0A        convertFrom = (Spinner) layout.findViewById(R.id.convert_from_spinner);%0A        convertTo = (Spinner) layout.findViewById(R.id.convert_to_spinner);%0A        setLayoutResources();%0A%0A        return layout;%0A    %7D%0A%0A    public void setLayoutResources() %7B%0A        switch(conversionType) %7B%0A            case %22Distance%22:%0A                conversionHead.setText(getResources().getString(R.string.distance_head));%0A                convertFrom.setAdapter(getArrayAdapter(getResources().getStringArray(R.array.distance_array)));%0A                convertTo.setAdapter(getArrayAdapter(getResources().getStringArray(R.array.distance_array)));%0A                break;%0A            case %22Volume%22:%0A                conversionHead.setText(getResources().getString(R.string.volume_head));%0A                convertFrom.setAdapter(getArrayAdapter(getResources().getStringArray(R.array.volume_array)));%0A                convertTo.setAdapter(getArrayAdapter(getResources().getStringArray(R.array.volume_array)));%0A                break;%0A            case %22Weight%22:%0A                conversionHead.setText(getResources().getString(R.string.weight_head));%0A                convertFrom.setAdapter(getArrayAdapter(getResources().getStringArray(R.array.weight_array)));%0A                convertTo.setAdapter(getArrayAdapter(getResources().getStringArray(R.array.weight_array)));%0A                break;%0A        %7D%0A    %7D%0A%0A    private ArrayAdapter%3CString%3E getArrayAdapter(String%5B%5D array) %7B%0A        ArrayAdapter%3CString%3E adapter = new ArrayAdapter%3C%3E(mActivity,%0A                android.R.layout.simple_spinner_item, array);%0A        adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);%0A%0A        return adapter;%0A    %7D%0A%0A%7D%0A

Implement conversions fragment.