@@ -0,0 +1,2042 @@
+// Copyright 2010 Google Inc. All Rights Reserved.%0A%0Apackage com.xtremelabs.robolectric.shadows;%0A%0Aimport android.content.Context;%0Aimport android.widget.ArrayAdapter;%0A%0Aimport com.xtremelabs.robolectric.util.Implementation;%0Aimport com.xtremelabs.robolectric.util.Implements;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0A@SuppressWarnings(%7B%22UnusedDeclaration%22%7D)%0A@Implements(ArrayAdapter.class)%0Apublic class ShadowArrayAdapter%3CT%3E extends ShadowBaseAdapter %7B%0A%0A  private Context context;%0A  private List%3CT%3E list;%0A%0A  public void __constructor__(Context context, int textViewResourceId) %7B%0A    init(context, textViewResourceId, 0, new ArrayList%3CT%3E());%0A  %7D%0A%0A  public void __constructor__(Context context, int resource, int textViewResourceId) %7B%0A    init(context, resource, textViewResourceId, new ArrayList%3CT%3E());%0A  %7D%0A%0A  public void __constructor__(Context context, int textViewResourceId, T%5B%5D objects) %7B%0A    init(context, textViewResourceId, 0, Arrays.asList(objects));%0A  %7D%0A%0A  public void __constructor__(Context context, int resource, int textViewResourceId, T%5B%5D objects) %7B%0A    init(context, resource, textViewResourceId, Arrays.asList(objects));%0A  %7D%0A%0A  public void __constructor__(Context context, int textViewResourceId, List%3CT%3E objects) %7B%0A    init(context, textViewResourceId, 0, objects);%0A  %7D%0A%0A  public void __constructor__(Context context, int resource, int textViewResourceId, List%3CT%3E objects) %7B%0A    init(context, resource, textViewResourceId, objects);%0A  %7D%0A%0A  private void init(Context context, int resource, int textViewResourceId, List%3CT%3E objects) %7B%0A    this.context = context;%0A    this.list = objects;%0A  %7D%0A%0A  @Implementation%0A  public void add(T object) %7B%0A    list.add(object);%0A  %7D%0A%0A  @Implementation%0A  public Context getContext() %7B%0A    return context;%0A  %7D%0A%0A  @Implementation%0A  public int getCount() %7B%0A    return list.size();%0A  %7D%0A%0A  @Implementation%0A  public T getItem(int position) %7B%0A    return list.get(position);%0A  %7D%0A%0A  @Implementation%0A  public int getPosition(T item) %7B%0A    return list.indexOf(item);%0A  %7D%0A%7D%0A

Add a new Shadow for the ArrayAdapter class.