// Path: MyApplication/app/src/main/java/com/example/administrator/myapplication/activity/simple/dummy/DummyContent.java
// public class DummyContent {
// 
//     /**
//      * An array of sample (dummy) items.
//      */
//     public static final List<DummyItem> ITEMS = new ArrayList<DummyItem>();
// 
//     /**
//      * A map of sample (dummy) items, by ID.
//      */
//     public static final Map<String, DummyItem> ITEM_MAP = new HashMap<String, DummyItem>();
// 
//     private static final int COUNT = 25;
// 
//     static {
//         // Add some sample items.
//         for (int i = 1; i <= COUNT; i++) {
//             addItem(createDummyItem(i));
//         }
//     }
// 
//     private static void addItem(DummyItem item) {
//         ITEMS.add(item);
//         ITEM_MAP.put(item.id, item);
//     }
// 
//     private static DummyItem createDummyItem(int position) {
//         return new DummyItem(String.valueOf(position), "Item " + position, makeDetails(position));
//     }
// 
//     private static String makeDetails(int position) {
//         StringBuilder builder = new StringBuilder();
//         builder.append("Details about Item: ").append(position);
//         for (int i = 0; i < position; i++) {
//             builder.append("\nMore details information here.");
//         }
//         return builder.toString();
//     }
// 
//     /**
//      * A dummy item representing a piece of content.
//      */
//     public static class DummyItem {
//         public final String id;
//         public final String content;
//         public final String details;
// 
//         public DummyItem(String id, String content, String details) {
//             this.id = id;
//             this.content = content;
//             this.details = details;
//         }
// 
//         @Override
//         public String toString() {
//             return content;
//         }
//     }
// }


import android.app.Activity;
import android.support.design.widget.CollapsingToolbarLayout;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.administrator.myapplication.R;
import com.example.administrator.myapplication.activity.simple.dummy.DummyContent;
package com.example.administrator.myapplication.activity.simple;



/**
 * A fragment representing a single Item detail screen.
 * This fragment is either contained in a {@link ItemListActivity}
 * in two-pane mode (on tablets) or a {@link ItemDetailActivity}
 * on handsets.
 */
public class ItemDetailFragment extends Fragment {
    /**
     * The fragment argument representing the item ID that this fragment
     * represents.
     */
    public static final String ARG_ITEM_ID = "item_id";

    /**
     * The dummy content this fragment is presenting.
     */
// Path: MyApplication/app/src/main/java/com/example/administrator/myapplication/activity/simple/dummy/DummyContent.java
// public class DummyContent {
// 
//     /**
//      * An array of sample (dummy) items.
//      */
//     public static final List<DummyItem> ITEMS = new ArrayList<DummyItem>();
// 
//     /**
//      * A map of sample (dummy) items, by ID.
//      */
//     public static final Map<String, DummyItem> ITEM_MAP = new HashMap<String, DummyItem>();
// 
//     private static final int COUNT = 25;
// 
//     static {
//         // Add some sample items.
//         for (int i = 1; i <= COUNT; i++) {
//             addItem(createDummyItem(i));
//         }
//     }
// 
//     private static void addItem(DummyItem item) {
//         ITEMS.add(item);
//         ITEM_MAP.put(item.id, item);
//     }
// 
//     private static DummyItem createDummyItem(int position) {
//         return new DummyItem(String.valueOf(position), "Item " + position, makeDetails(position));
//     }
// 
//     private static String makeDetails(int position) {
//         StringBuilder builder = new StringBuilder();
//         builder.append("Details about Item: ").append(position);
//         for (int i = 0; i < position; i++) {
//             builder.append("\nMore details information here.");
//         }
//         return builder.toString();
//     }
// 
//     /**
//      * A dummy item representing a piece of content.
//      */
//     public static class DummyItem {
//         public final String id;
//         public final String content;
//         public final String details;
// 
//         public DummyItem(String id, String content, String details) {
//             this.id = id;
//             this.content = content;
//             this.details = details;
//         }
// 
//         @Override
//         public String toString() {
//             return content;
//         }
//     }
// }


// Path: MyApplication/app/src/main/java/com/example/administrator/myapplication/activity/simple/ItemDetailFragment.java
import android.app.Activity;
import android.support.design.widget.CollapsingToolbarLayout;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.administrator.myapplication.R;
import com.example.administrator.myapplication.activity.simple.dummy.DummyContent;

package com.example.administrator.myapplication.activity.simple;



/**
 * A fragment representing a single Item detail screen.
 * This fragment is either contained in a {@link ItemListActivity}
 * in two-pane mode (on tablets) or a {@link ItemDetailActivity}
 * on handsets.
 */
public class ItemDetailFragment extends Fragment {
    /**
     * The fragment argument representing the item ID that this fragment
     * represents.
     */
    public static final String ARG_ITEM_ID = "item_id";

    /**
     * The dummy content this fragment is presenting.
     */
    private DummyContent.DummyItem mItem;