// Path: app/src/main/java/discovery/contentful/ui/DisplayItem.java
// public class DisplayItem {
//   public String key;
//   public String displayValue;
//   public String fieldType;
//   public CDAResource resource;
//   public String imageURI;
//   public LatLng location;
// 
//   // Array
//   public List<Object> array;
//   public String arrayItemType;
//   public String arrayLinkType;
// }


import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import discovery.contentful.ui.DisplayItem;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
package discovery.contentful.preview;


public class EntryPreviewAdapter extends BaseAdapter {
  // View types
  public static final int VIEW_TYPE_GENERIC = 0;
  public static final int VIEW_TYPE_RTF = 1;
  public static final int VIEW_TYPE_ARRAY = 2;

  private final Context context;
// Path: app/src/main/java/discovery/contentful/ui/DisplayItem.java
// public class DisplayItem {
//   public String key;
//   public String displayValue;
//   public String fieldType;
//   public CDAResource resource;
//   public String imageURI;
//   public LatLng location;
// 
//   // Array
//   public List<Object> array;
//   public String arrayItemType;
//   public String arrayLinkType;
// }


// Path: app/src/main/java/discovery/contentful/preview/EntryPreviewAdapter.java
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import discovery.contentful.ui.DisplayItem;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

package discovery.contentful.preview;


public class EntryPreviewAdapter extends BaseAdapter {
  // View types
  public static final int VIEW_TYPE_GENERIC = 0;
  public static final int VIEW_TYPE_RTF = 1;
  public static final int VIEW_TYPE_ARRAY = 2;

  private final Context context;
  private List<DisplayItem> data = new ArrayList<>();