Back to project page pypodroid.
The source code is released under:
Apache License
If you think the Android project pypodroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.daxbau.pypodroid.pypo; // w w w . ja va2 s . c o m import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Helper class for providing sample content for user interfaces created by * Android template wizards. * <p> * TODO: Replace all uses of this class before publishing your app. */ public class Item { /** * An array of sample (dummy) items. */ public static List<PypoItem> ITEMS = new ArrayList<PypoItem>(); /** * A map of sample (dummy) items, by ID. */ public static Map<String, PypoItem> ITEM_MAP = new HashMap<String, PypoItem>(); public static void addItem(PypoItem item) { ITEMS.add(item); ITEM_MAP.put(item.id, item); } public static void clearItems() { ITEMS.clear(); ITEM_MAP.clear(); } /** * A dummy item representing a piece of content. */ public static class PypoItem { public String id; public String url; public String title; public String content; public PypoItem(String id, String title, String url, String content) { this.id = id; this.title = title; this.url = url; this.content = content; } @Override public String toString() { return title; } } }