All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.shadows.ShadowArrayAdapter Maven / Gradle / Ivy

package org.robolectric.shadows;

import android.widget.ArrayAdapter;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.util.ReflectionHelpers;

@SuppressWarnings("UnusedDeclaration")
@Implements(ArrayAdapter.class)
public class ShadowArrayAdapter extends ShadowBaseAdapter {
  @RealObject private ArrayAdapter realArrayAdapter;

  public int getTextViewResourceId() {
    return ReflectionHelpers.getField(realArrayAdapter, "mFieldId");
  }

  public int getResourceId() {
    return ReflectionHelpers.getField(realArrayAdapter, "mResource");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy