1 package ${packageName}.dummy;
3 import java.util.ArrayList;
4 import java.util.HashMap;
9 * Helper class for providing sample content for user interfaces created by
10 * Android template wizards.
12 * TODO: Replace all uses of this class before publishing your app.
14 public class DummyContent {
17 * An array of sample (dummy) items.
19 public static List<DummyItem> ITEMS = new ArrayList<DummyItem>();
22 * A map of sample (dummy) items, by ID.
24 public static Map<String, DummyItem> ITEM_MAP = new HashMap<String, DummyItem>();
27 // Add 3 sample items.
28 addItem(new DummyItem("1", "Item 1"));
29 addItem(new DummyItem("2", "Item 2"));
30 addItem(new DummyItem("3", "Item 3"));
33 private static void addItem(DummyItem item) {
35 ITEM_MAP.put(item.id, item);
39 * A dummy item representing a piece of content.
41 public static class DummyItem {
43 public String content;
45 public DummyItem(String id, String content) {
47 this.content = content;
51 public String toString() {