org.robolectric.shadows.ShadowArrayAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-core-v18 Show documentation
Show all versions of shadows-core-v18 Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.widget.ArrayAdapter;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.util.ReflectionHelpers;
/**
* Shadow for {@link android.widget.ArrayAdapter}.
*/
@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