
org.robolectric.shadows.ShadowDialog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import org.robolectric.Shadows;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.annotation.Resetter;
import org.robolectric.util.ReflectionHelpers;
import org.robolectric.util.ReflectionHelpers.ClassParameter;
import java.util.ArrayList;
import java.util.List;
import static org.robolectric.shadow.api.Shadow.directlyOn;
@SuppressWarnings({"UnusedDeclaration"})
@Implements(Dialog.class)
public class ShadowDialog {
@RealObject private Dialog realDialog;
private boolean isShowing;
Context context;
private int layoutId;
private int themeId;
private View inflatedView;
private boolean hasBeenDismissed;
protected CharSequence title;
private DialogInterface.OnCancelListener onCancelListener;
private Window window;
private Activity ownerActivity;
private boolean hasShownBefore;
private static final ArrayList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy