@@ -0,0 +1,2686 @@
+package com.example.profbola.bakingtime.ui;%0A%0Aimport android.os.Bundle;%0Aimport android.support.annotation.Nullable;%0Aimport android.support.design.widget.Snackbar;%0Aimport android.support.v4.app.Fragment;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.TextView;%0Aimport android.widget.Toast;%0A%0Aimport com.example.profbola.bakingtime.R;%0Aimport com.example.profbola.bakingtime.models.Ingredient;%0Aimport com.example.profbola.bakingtime.models.Step;%0A%0A/**%0A * Created by prof.BOLA on 7/2/2017.%0A */%0A%0Apublic class FullDetailsFragment extends Fragment %7B%0A%0A    public FullDetailsFragment()%7B%0A    %7D%0A%0A    @Override%0A    public void onCreate(@Nullable Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A    %7D%0A%0A    @Nullable%0A    @Override%0A    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) %7B%0A%0A        View view = inflater.inflate(R.layout.fragment_full_detail, container, false);%0A        Bundle bundle = getArguments();%0A%0A        // TODO: 7/3/2017 Clean up by creating Key constants in all place used%0A        if (bundle != null && bundle.containsKey(RecipeDetailActivity.INGREDIENTS_KEY)) %7B%0A            Ingredient ingredient = bundle.getParcelable(RecipeDetailActivity.INGREDIENTS_KEY);%0A            setUpIngredient(ingredient, view);%0A        %7D else if (bundle != null && bundle.containsKey(RecipeDetailActivity.STEP_KEY)) %7B%0A            Step step = bundle.getParcelable(RecipeDetailActivity.STEP_KEY);%0A            setUpStep(step, view);%0A        %7D%0A%0A        Toast.makeText(getContext(), %22It Worked!!!%22, Toast.LENGTH_SHORT).show();%0A%0A        return view;%0A    %7D%0A%0A    private void setUpIngredient(Ingredient ingredient, View view) %7B%0A        Toast.makeText(getContext(), %22It Worked!!!%22, Toast.LENGTH_SHORT).show();%0A%0A        view.findViewById(R.id.player_view).setVisibility(View.GONE);%0A        view.findViewById(R.id.ingredient_view).setVisibility(View.VISIBLE);%0A%0A        TextView quantity = (TextView) view.findViewById(R.id.quantity);%0A        TextView measure = (TextView) view.findViewById(R.id.measure);%0A        TextView name = (TextView) view.findViewById(R.id.ingredient);%0A%0A        quantity.getText();%0A        quantity.setText(String.valueOf(ingredient.quantity));%0A        measure.setText(ingredient.measure);%0A        name.setText(ingredient.ingredient);%0A    %7D%0A%0A    private void setUpStep(Step step, View view) %7B%0A        Toast.makeText(getContext(), %22It Worked!!!%22, Toast.LENGTH_SHORT).show();%0A%0A        view.findViewById(R.id.player_view).setVisibility(View.VISIBLE);%0A        view.findViewById(R.id.ingredient_view).setVisibility(View.GONE);%0A    %7D%0A%7D%0A

Add FullDetailsFragment