A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/admob/android/reference/com/google/android/gms/ads/BaseAdView below:

BaseAdView | Android | Google for Developers

Skip to main content

Stay organized with collections Save and categorize content based on your preferences.

public abstract class BaseAdView extends ViewGroup

The base ad android.view.View for displaying banner ads.

Summary Protected constructors BaseAdView(Context context, int adViewType)

Constructs a BaseAdView from code.

BaseAdView(Context context, AttributeSet attrs, int adViewType)

Constructs a BaseAdView from an XML layout.

BaseAdView(
    Context context,
    AttributeSet attrs,
    boolean allowMultipleAdSizes
)

Constructs a BaseAdView from an XML layout.

BaseAdView(
    Context context,
    AttributeSet attrs,
    int defStyle,
    int adViewType
)

Constructs a BaseAdView from an XML layout.

BaseAdView(
    Context context,
    AttributeSet attrs,
    int defStyle,
    int adViewType,
    boolean allowMultipleAdSizes
)

Constructs a BaseAdView from an XML layout.

Protected methods void onLayout(boolean changed, int left, int top, int right, int bottom) void onMeasure(int widthMeasureSpec, int heightMeasureSpec) Inherited Constants From android.view.View static final int ACCESSIBILITY_DATA_SENSITIVE_AUTO = 0 static final int ACCESSIBILITY_DATA_SENSITIVE_NO = 2 static final int ACCESSIBILITY_DATA_SENSITIVE_YES = 1 static final int ACCESSIBILITY_LIVE_REGION_ASSERTIVE = 2 static final int ACCESSIBILITY_LIVE_REGION_NONE = 0 static final int ACCESSIBILITY_LIVE_REGION_POLITE = 1 static final Property<ViewFloat> ALPHA static final int AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS = 1 static final String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE = "creditCardExpirationDate" static final String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY = "creditCardExpirationDay" static final String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH = "creditCardExpirationMonth" static final String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR = "creditCardExpirationYear" static final String AUTOFILL_HINT_CREDIT_CARD_NUMBER = "creditCardNumber" static final String AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE = "creditCardSecurityCode" static final String AUTOFILL_HINT_EMAIL_ADDRESS = "emailAddress" static final String AUTOFILL_HINT_NAME = "name" static final String AUTOFILL_HINT_PASSWORD = "password" static final String AUTOFILL_HINT_PHONE = "phone" static final String AUTOFILL_HINT_POSTAL_ADDRESS = "postalAddress" static final String AUTOFILL_HINT_POSTAL_CODE = "postalCode" static final String AUTOFILL_HINT_USERNAME = "username" static final int AUTOFILL_TYPE_DATE = 4 static final int AUTOFILL_TYPE_LIST = 3 static final int AUTOFILL_TYPE_NONE = 0 static final int AUTOFILL_TYPE_TEXT = 1 static final int AUTOFILL_TYPE_TOGGLE = 2 static final int CONTENT_SENSITIVITY_AUTO = 0 static final int CONTENT_SENSITIVITY_NOT_SENSITIVE = 2 static final int CONTENT_SENSITIVITY_SENSITIVE = 1 static final int DRAG_FLAG_ACCESSIBILITY_ACTION = 1024 static final int DRAG_FLAG_GLOBAL = 256 static final int DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION = 64 static final int DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION = 128 static final int DRAG_FLAG_GLOBAL_SAME_APPLICATION = 4096 static final int DRAG_FLAG_GLOBAL_URI_READ = 1 static final int DRAG_FLAG_GLOBAL_URI_WRITE = 2 static final int DRAG_FLAG_HIDE_CALLING_TASK_ON_DRAG_START = 16384 static final int DRAG_FLAG_OPAQUE = 512 static final int DRAG_FLAG_START_INTENT_SENDER_ON_UNHANDLED_DRAG = 8192 static final int DRAWING_CACHE_QUALITY_AUTO = 0

This field is deprecated.

static final int DRAWING_CACHE_QUALITY_HIGH = 1048576

This field is deprecated.

static final int DRAWING_CACHE_QUALITY_LOW = 524288

This field is deprecated.

static final int[] EMPTY_STATE_SET static final int[] ENABLED_FOCUSED_SELECTED_STATE_SET static final int[] ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET static final int[] ENABLED_FOCUSED_STATE_SET static final int[] ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET static final int[] ENABLED_SELECTED_STATE_SET static final int[] ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET static final int[] ENABLED_STATE_SET static final int[] ENABLED_WINDOW_FOCUSED_STATE_SET static final int FIND_VIEWS_WITH_CONTENT_DESCRIPTION = 2 static final int FIND_VIEWS_WITH_TEXT = 1 static final int FOCUSABLE = 1 static final int FOCUSABLES_ALL = 0 static final int FOCUSABLES_TOUCH_MODE = 1 static final int FOCUSABLE_AUTO = 16 static final int[] FOCUSED_SELECTED_STATE_SET static final int[] FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET static final int[] FOCUSED_STATE_SET static final int[] FOCUSED_WINDOW_FOCUSED_STATE_SET static final int FOCUS_BACKWARD = 1 static final int FOCUS_DOWN = 130 static final int FOCUS_FORWARD = 2 static final int FOCUS_LEFT = 17 static final int FOCUS_RIGHT = 66 static final int FOCUS_UP = 33 static final int GONE = 8 static final int HAPTIC_FEEDBACK_ENABLED = 268435456 static final int IMPORTANT_FOR_ACCESSIBILITY_AUTO = 0 static final int IMPORTANT_FOR_ACCESSIBILITY_NO = 2 static final int IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS = 4 static final int IMPORTANT_FOR_ACCESSIBILITY_YES = 1 static final int IMPORTANT_FOR_AUTOFILL_AUTO = 0 static final int IMPORTANT_FOR_AUTOFILL_NO = 2 static final int IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS = 8 static final int IMPORTANT_FOR_AUTOFILL_YES = 1 static final int IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS = 4 static final int IMPORTANT_FOR_CONTENT_CAPTURE_AUTO = 0 static final int IMPORTANT_FOR_CONTENT_CAPTURE_NO = 2 static final int IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS = 8 static final int IMPORTANT_FOR_CONTENT_CAPTURE_YES = 1 static final int IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS = 4 static final int INVISIBLE = 4 static final int KEEP_SCREEN_ON = 67108864 static final int LAYER_TYPE_HARDWARE = 2 static final int LAYER_TYPE_NONE = 0 static final int LAYER_TYPE_SOFTWARE = 1 static final int LAYOUT_DIRECTION_INHERIT = 2 static final int LAYOUT_DIRECTION_LOCALE = 3 static final int LAYOUT_DIRECTION_LTR = 0 static final int LAYOUT_DIRECTION_RTL = 1 static final int MEASURED_HEIGHT_STATE_SHIFT = 16 static final int MEASURED_SIZE_MASK = 16777215 static final int MEASURED_STATE_MASK = -16777216 static final int MEASURED_STATE_TOO_SMALL = 16777216 static final int NOT_FOCUSABLE = 0 static final int NO_ID = -1 static final int OVER_SCROLL_ALWAYS = 0 static final int OVER_SCROLL_IF_CONTENT_SCROLLS = 1 static final int OVER_SCROLL_NEVER = 2 static final int[] PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET static final int[] PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET static final int[] PRESSED_ENABLED_FOCUSED_STATE_SET static final int[] PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET static final int[] PRESSED_ENABLED_SELECTED_STATE_SET static final int[] PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET static final int[] PRESSED_ENABLED_STATE_SET static final int[] PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET static final int[] PRESSED_FOCUSED_SELECTED_STATE_SET static final int[] PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET static final int[] PRESSED_FOCUSED_STATE_SET static final int[] PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET static final int[] PRESSED_SELECTED_STATE_SET static final int[] PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET static final int[] PRESSED_STATE_SET static final int[] PRESSED_WINDOW_FOCUSED_STATE_SET static final float REQUESTED_FRAME_RATE_CATEGORY_DEFAULT static final float REQUESTED_FRAME_RATE_CATEGORY_HIGH = -4.0f static final float REQUESTED_FRAME_RATE_CATEGORY_LOW = -2.0f static final float REQUESTED_FRAME_RATE_CATEGORY_NORMAL = -3.0f static final float REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE = -1.0f static final Property<ViewFloat> ROTATION static final Property<ViewFloat> ROTATION_X static final Property<ViewFloat> ROTATION_Y static final Property<ViewFloat> SCALE_X static final Property<ViewFloat> SCALE_Y static final int SCREEN_STATE_OFF = 0 static final int SCREEN_STATE_ON = 1 static final int SCROLLBARS_INSIDE_INSET = 16777216 static final int SCROLLBARS_INSIDE_OVERLAY = 0 static final int SCROLLBARS_OUTSIDE_INSET = 50331648 static final int SCROLLBARS_OUTSIDE_OVERLAY = 33554432 static final int SCROLLBAR_POSITION_DEFAULT = 0 static final int SCROLLBAR_POSITION_LEFT = 1 static final int SCROLLBAR_POSITION_RIGHT = 2 static final int SCROLL_AXIS_HORIZONTAL = 1 static final int SCROLL_AXIS_NONE = 0 static final int SCROLL_AXIS_VERTICAL = 2 static final int SCROLL_CAPTURE_HINT_AUTO = 0 static final int SCROLL_CAPTURE_HINT_EXCLUDE = 1 static final int SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS = 4 static final int SCROLL_CAPTURE_HINT_INCLUDE = 2 static final int SCROLL_INDICATOR_BOTTOM = 2 static final int SCROLL_INDICATOR_END = 32 static final int SCROLL_INDICATOR_LEFT = 4 static final int SCROLL_INDICATOR_RIGHT = 8 static final int SCROLL_INDICATOR_START = 16 static final int SCROLL_INDICATOR_TOP = 1 static final int[] SELECTED_STATE_SET static final int[] SELECTED_WINDOW_FOCUSED_STATE_SET static final int SOUND_EFFECTS_ENABLED = 134217728 static final int STATUS_BAR_HIDDEN = 1

This field is deprecated.

static final int STATUS_BAR_VISIBLE = 0

This field is deprecated.

static final int SYSTEM_UI_FLAG_FULLSCREEN = 4

This field is deprecated.

static final int SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2

This field is deprecated.

static final int SYSTEM_UI_FLAG_IMMERSIVE = 2048

This field is deprecated.

static final int SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 4096

This field is deprecated.

static final int SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 1024

This field is deprecated.

static final int SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 512

This field is deprecated.

static final int SYSTEM_UI_FLAG_LAYOUT_STABLE = 256

This field is deprecated.

static final int SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR = 16

This field is deprecated.

static final int SYSTEM_UI_FLAG_LIGHT_STATUS_BAR = 8192

This field is deprecated.

static final int SYSTEM_UI_FLAG_LOW_PROFILE = 1

This field is deprecated.

static final int SYSTEM_UI_FLAG_VISIBLE = 0

This field is deprecated.

static final int SYSTEM_UI_LAYOUT_FLAGS = 1536

This field is deprecated.

static final int TEXT_ALIGNMENT_CENTER = 4 static final int TEXT_ALIGNMENT_GRAVITY = 1 static final int TEXT_ALIGNMENT_INHERIT = 0 static final int TEXT_ALIGNMENT_TEXT_END = 3 static final int TEXT_ALIGNMENT_TEXT_START = 2 static final int TEXT_ALIGNMENT_VIEW_END = 6 static final int TEXT_ALIGNMENT_VIEW_START = 5 static final int TEXT_DIRECTION_ANY_RTL = 2 static final int TEXT_DIRECTION_FIRST_STRONG = 1 static final int TEXT_DIRECTION_FIRST_STRONG_LTR = 6 static final int TEXT_DIRECTION_FIRST_STRONG_RTL = 7 static final int TEXT_DIRECTION_INHERIT = 0 static final int TEXT_DIRECTION_LOCALE = 5 static final int TEXT_DIRECTION_LTR = 3 static final int TEXT_DIRECTION_RTL = 4 static final Property<ViewFloat> TRANSLATION_X static final Property<ViewFloat> TRANSLATION_Y static final Property<ViewFloat> TRANSLATION_Z static final String VIEW_LOG_TAG = "View" static final int VISIBLE = 0 static final int[] WINDOW_FOCUSED_STATE_SET static final Property<ViewFloat> X static final Property<ViewFloat> Y static final Property<ViewFloat> Z From android.view.ViewGroup static final int CLIP_TO_PADDING_MASK = 34 static final int FOCUS_AFTER_DESCENDANTS = 262144 static final int FOCUS_BEFORE_DESCENDANTS = 131072 static final int FOCUS_BLOCK_DESCENDANTS = 393216 static final int LAYOUT_MODE_CLIP_BOUNDS = 0 static final int LAYOUT_MODE_OPTICAL_BOUNDS = 1 static final int PERSISTENT_ALL_CACHES = 3

This field is deprecated.

static final int PERSISTENT_ANIMATION_CACHE = 1

This field is deprecated.

static final int PERSISTENT_NO_CACHE = 0

This field is deprecated.

static final int PERSISTENT_SCROLLING_CACHE = 2

This field is deprecated.

Inherited methods From android.view.View void addOnAttachStateChangeListener(View.OnAttachStateChangeListener p) void addOnLayoutChangeListener(View.OnLayoutChangeListener p) void addOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener p) ViewPropertyAnimator animate() void announceForAccessibility(CharSequence p)

This method is deprecated.

void autofill(SparseArray<AutofillValue> p) boolean awakenScrollBars() void bringToFront() void buildDrawingCache()

This method is deprecated.

void buildLayer() boolean callOnClick() boolean canResolveLayoutDirection() boolean canResolveTextAlignment() boolean canResolveTextDirection() boolean canScrollHorizontally(int p) boolean canScrollVertically(int p) final void cancelDragAndDrop() void cancelLongPress() final void cancelPendingInputEvents() boolean checkInputConnectionProxy(View p) void clearAnimation() void clearPendingCredentialRequest() void clearViewTranslationCallback() static int combineMeasuredStates(int p, int p1) int computeHorizontalScrollExtent() int computeHorizontalScrollOffset() int computeHorizontalScrollRange() void computeScroll() WindowInsets computeSystemWindowInsets(WindowInsets p, Rect p1) int computeVerticalScrollExtent() int computeVerticalScrollOffset() int computeVerticalScrollRange() AccessibilityNodeInfo createAccessibilityNodeInfo() void createContextMenu(ContextMenu p) void destroyDrawingCache()

This method is deprecated.

boolean dispatchGenericMotionEvent(MotionEvent p) boolean dispatchNestedFling(float p, float p1, boolean p2) boolean dispatchNestedPreFling(float p, float p1) boolean dispatchNestedPrePerformAccessibilityAction(int p, Bundle p1) boolean dispatchNestedPreScroll(int p, int p1, int[] p2, int[] p3) boolean dispatchNestedScroll(int p, int p1, int p2, int p3, int[] p4) boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent p) void draw(Canvas p) void drawableHotspotChanged(float p, float p1) final OnBackInvokedDispatcher findOnBackInvokedDispatcher() final T <T extends View> findViewById(int p) final T <T extends View> findViewWithTag(Object p) boolean fitSystemWindows(Rect p)

This method is deprecated.

void forceHasOverlappingRendering(boolean p) void forceLayout() void generateDisplayHash(
    String p,
    Rect p1,
    Executor p2,
    DisplayHashResultCallback p3
)
static int generateViewId() View.AccessibilityDelegate getAccessibilityDelegate() int getAccessibilityLiveRegion() AccessibilityNodeProvider getAccessibilityNodeProvider() CharSequence getAccessibilityPaneTitle() int getAccessibilityTraversalAfter() int getAccessibilityTraversalBefore() String getAllowedHandwritingDelegatePackageName() String getAllowedHandwritingDelegatorPackageName() float getAlpha() Animation getAnimation() Matrix getAnimationMatrix() IBinder getApplicationWindowToken() int[] getAttributeResolutionStack(int p) Map<IntegerInteger> getAttributeSourceResourceMap() String[] getAutofillHints() final AutofillId getAutofillId() int getAutofillType() AutofillValue getAutofillValue() Drawable getBackground() BlendMode getBackgroundTintBlendMode() ColorStateList getBackgroundTintList() PorterDuff.Mode getBackgroundTintMode() int getBaseline() final int getBottom() float getBottomFadingEdgeStrength() int getBottomPaddingOffset() float getCameraDistance() Rect getClipBounds() boolean getClipBounds(Rect p) final boolean getClipToOutline() final ContentCaptureSession getContentCaptureSession() CharSequence getContentDescription() final int getContentSensitivity() final Context getContext() ContextMenu.ContextMenuInfo getContextMenuInfo() final boolean getDefaultFocusHighlightEnabled() static int getDefaultSize(int p, int p1) Display getDisplay() final int[] getDrawableState() Bitmap getDrawingCache()

This method is deprecated.

int getDrawingCacheBackgroundColor()

This method is deprecated.

int getDrawingCacheQuality()

This method is deprecated.

void getDrawingRect(Rect p) long getDrawingTime() float getElevation() int getExplicitStyle() boolean getFilterTouchesWhenObscured() boolean getFitsSystemWindows() int getFocusable() ArrayList<View> getFocusables(int p) void getFocusedRect(Rect p) Drawable getForeground() int getForegroundGravity() BlendMode getForegroundTintBlendMode() ColorStateList getForegroundTintList() PorterDuff.Mode getForegroundTintMode() float getFrameContentVelocity() final boolean getGlobalVisibleRect(Rect p) Handler getHandler() float getHandwritingBoundsOffsetBottom() float getHandwritingBoundsOffsetLeft() float getHandwritingBoundsOffsetRight() float getHandwritingBoundsOffsetTop() int getHandwritingDelegateFlags() Runnable getHandwritingDelegatorCallback() final boolean getHasOverlappingRendering() final int getHeight() void getHitRect(Rect p) int getHorizontalFadingEdgeLength() int getHorizontalScrollbarHeight() Drawable getHorizontalScrollbarThumbDrawable() Drawable getHorizontalScrollbarTrackDrawable() int getId() int getImportantForAccessibility() int getImportantForAutofill() int getImportantForContentCapture() boolean getKeepScreenOn() KeyEvent.DispatcherState getKeyDispatcherState() int getLabelFor() int getLayerType() int getLayoutDirection() ViewGroup.LayoutParams getLayoutParams() final int getLeft() float getLeftFadingEdgeStrength() int getLeftPaddingOffset() final boolean getLocalVisibleRect(Rect p) void getLocationInSurface(int[] p) void getLocationInWindow(int[] p) void getLocationOnScreen(int[] p) Matrix getMatrix() final int getMeasuredHeight() final int getMeasuredHeightAndState() final int getMeasuredState() final int getMeasuredWidth() final int getMeasuredWidthAndState() int getMinimumHeight() int getMinimumWidth() int getNextClusterForwardId() int getNextFocusDownId() int getNextFocusForwardId() int getNextFocusLeftId() int getNextFocusRightId() int getNextFocusUpId() View.OnFocusChangeListener getOnFocusChangeListener() int getOutlineAmbientShadowColor() ViewOutlineProvider getOutlineProvider() int getOutlineSpotShadowColor() int getOverScrollMode() ViewOverlay getOverlay() int getPaddingBottom() int getPaddingEnd() int getPaddingLeft() int getPaddingRight() int getPaddingStart() int getPaddingTop() final ViewParent getParent() ViewParent getParentForAccessibility() final OutcomeReceiver<GetCredentialResponseGetCredentialException> getPendingCredentialCallback() final GetCredentialRequest getPendingCredentialRequest() float getPivotX() float getPivotY() PointerIcon getPointerIcon() final List<Rect> getPreferKeepClearRects() String[] getReceiveContentMimeTypes() float getRequestedFrameRate() Resources getResources() final boolean getRevealOnFocusHint() final int getRight() float getRightFadingEdgeStrength() int getRightPaddingOffset() AttachedSurfaceControl getRootSurfaceControl() View getRootView() WindowInsets getRootWindowInsets() float getRotation() float getRotationX() float getRotationY() float getScaleX() float getScaleY() int getScrollBarDefaultDelayBeforeFade() int getScrollBarFadeDuration() int getScrollBarSize() int getScrollBarStyle() int getScrollCaptureHint() int getScrollIndicators() final int getScrollX() final int getScrollY() int getSolidColor() int getSourceLayoutResId() final CharSequence getStateDescription() StateListAnimator getStateListAnimator() int getSuggestedMinimumHeight() int getSuggestedMinimumWidth() CharSequence getSupplementalDescription() List<Rect> getSystemGestureExclusionRects() int getSystemUiVisibility()

This method is deprecated.

Object getTag() int getTextAlignment() int getTextDirection() CharSequence getTooltipText() final int getTop() float getTopFadingEdgeStrength() int getTopPaddingOffset() TouchDelegate getTouchDelegate() ArrayList<View> getTouchables() float getTransitionAlpha() String getTransitionName() float getTranslationX() float getTranslationY() float getTranslationZ() long getUniqueDrawingId() int getVerticalFadingEdgeLength() int getVerticalScrollbarPosition() Drawable getVerticalScrollbarThumbDrawable() Drawable getVerticalScrollbarTrackDrawable() int getVerticalScrollbarWidth() ViewTranslationResponse getViewTranslationResponse() ViewTreeObserver getViewTreeObserver() int getVisibility() final int getWidth() int getWindowAttachCount() WindowId getWindowId() WindowInsetsController getWindowInsetsController() int getWindowSystemUiVisibility()

This method is deprecated.

IBinder getWindowToken() int getWindowVisibility() void getWindowVisibleDisplayFrame(Rect p) float getX() float getY() float getZ() boolean hasExplicitFocusable() boolean hasFocusable() boolean hasNestedScrollingParent() boolean hasOnClickListeners() boolean hasOnLongClickListeners() boolean hasOverlappingRendering() boolean hasPointerCapture() boolean hasWindowFocus() static View inflate(Context p, int p1, ViewGroup p2) void invalidate() void invalidateDrawable(Drawable p) void invalidateOutline() boolean isAccessibilityDataSensitive() boolean isAccessibilityFocused() boolean isAccessibilityHeading() boolean isActivated() boolean isAttachedToWindow() boolean isAutoHandwritingEnabled() boolean isClickable() final boolean isContentSensitive() boolean isContextClickable() boolean isCredential() boolean isDirty() boolean isDrawingCacheEnabled()

This method is deprecated.

boolean isDuplicateParentStateEnabled() boolean isEnabled() final boolean isFocusable() final boolean isFocusableInTouchMode() boolean isFocused() final boolean isFocusedByDefault() boolean isForceDarkAllowed() boolean isHandwritingDelegate() boolean isHapticFeedbackEnabled() boolean isHardwareAccelerated() boolean isHorizontalFadingEdgeEnabled() boolean isHorizontalScrollBarEnabled() boolean isHovered() boolean isImportantForAccessibility() final boolean isImportantForAutofill() final boolean isImportantForContentCapture() boolean isInEditMode() boolean isInLayout() boolean isInTouchMode() final boolean isKeyboardNavigationCluster() boolean isLaidOut() boolean isLayoutDirectionResolved() boolean isLayoutRequested() boolean isLongClickable() boolean isNestedScrollingEnabled() boolean isOpaque() boolean isPaddingOffsetRequired() boolean isPaddingRelative() boolean isPivotSet() final boolean isPreferKeepClear() boolean isPressed() boolean isSaveEnabled() boolean isSaveFromParentEnabled() boolean isScreenReaderFocusable() boolean isScrollContainer() boolean isScrollbarFadingEnabled() boolean isSelected() final boolean isShowingLayoutBounds() boolean isShown() boolean isSoundEffectsEnabled() final boolean isTemporarilyDetached() boolean isTextAlignmentResolved() boolean isTextDirectionResolved() boolean isVerticalFadingEdgeEnabled() boolean isVerticalScrollBarEnabled() boolean isVisibleToUserForAutofill(int p) View keyboardNavigationClusterSearch(View p, int p1) final void measure(int p, int p1) static int[] mergeDrawableStates(int[] p, int[] p1) void offsetLeftAndRight(int p) void offsetTopAndBottom(int p) void onAnimationEnd() void onAnimationStart() WindowInsets onApplyWindowInsets(WindowInsets p) void onCancelPendingInputEvents() boolean onCapturedPointerEvent(MotionEvent p) boolean onCheckIsTextEditor() void onConfigurationChanged(Configuration p) void onCreateContextMenu(ContextMenu p) InputConnection onCreateInputConnection(EditorInfo p) void onCreateViewTranslationRequest(
    int[] p,
    Consumer<ViewTranslationRequest> p1
)
void onCreateVirtualViewTranslationRequests(
    long[] p,
    int[] p1,
    Consumer<ViewTranslationRequest> p2
)
void onDisplayHint(int p) boolean onDragEvent(DragEvent p) void onDraw(Canvas p) void onDrawForeground(Canvas p) final void onDrawScrollBars(Canvas p) boolean onFilterTouchEventForSecurity(MotionEvent p) void onFinishInflate() void onFinishTemporaryDetach() void onFocusChanged(boolean p, int p1, Rect p2) boolean onGenericMotionEvent(MotionEvent p) void onHoverChanged(boolean p) boolean onHoverEvent(MotionEvent p) void onInitializeAccessibilityEvent(AccessibilityEvent p) void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo p) boolean onKeyDown(int p, KeyEvent p1) boolean onKeyLongPress(int p, KeyEvent p1) boolean onKeyMultiple(int p, int p1, KeyEvent p2) boolean onKeyPreIme(int p, KeyEvent p1) boolean onKeyShortcut(int p, KeyEvent p1) boolean onKeyUp(int p, KeyEvent p1) void onOverScrolled(int p, int p1, boolean p2, boolean p3) void onPointerCaptureChange(boolean p) void onPopulateAccessibilityEvent(AccessibilityEvent p) void onProvideAutofillStructure(ViewStructure p, int p1) void onProvideAutofillVirtualStructure(ViewStructure p, int p1) void onProvideContentCaptureStructure(ViewStructure p, int p1) void onProvideStructure(ViewStructure p) void onProvideVirtualStructure(ViewStructure p) ContentInfo onReceiveContent(ContentInfo p) void onRestoreInstanceState(Parcelable p) void onRtlPropertiesChanged(int p) Parcelable onSaveInstanceState() void onScreenStateChanged(int p) void onScrollCaptureSearch(
    Rect p,
    Point p1,
    Consumer<ScrollCaptureTarget> p2
)
void onScrollChanged(int p, int p1, int p2, int p3) boolean onSetAlpha(int p) void onSizeChanged(int p, int p1, int p2, int p3) void onStartTemporaryDetach() boolean onTouchEvent(MotionEvent p) boolean onTrackballEvent(MotionEvent p) void onViewTranslationResponse(ViewTranslationResponse p) void onVirtualViewTranslationResponses(
    LongSparseArray<ViewTranslationResponse> p
)
void onVisibilityAggregated(boolean p) void onVisibilityChanged(View p, int p1) void onWindowFocusChanged(boolean p) void onWindowSystemUiVisibilityChanged(int p)

This method is deprecated.

void onWindowVisibilityChanged(int p) boolean overScrollBy(
    int p,
    int p1,
    int p2,
    int p3,
    int p4,
    int p5,
    int p6,
    int p7,
    boolean p8
)
boolean performAccessibilityAction(int p, Bundle p1) boolean performClick() boolean performContextClick() boolean performHapticFeedback(int p) boolean performLongClick() ContentInfo performReceiveContent(ContentInfo p) void playSoundEffect(int p) boolean post(Runnable p) boolean postDelayed(Runnable p, long p1) void postInvalidate() void postInvalidateDelayed(long p) void postInvalidateOnAnimation() void postOnAnimation(Runnable p) void postOnAnimationDelayed(Runnable p, long p1) void refreshDrawableState() void releasePointerCapture() boolean removeCallbacks(Runnable p) void removeOnAttachStateChangeListener(View.OnAttachStateChangeListener p) void removeOnLayoutChangeListener(View.OnLayoutChangeListener p) void removeOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener p) void reportAppJankStats(AppJankStats p) void requestApplyInsets() void requestFitSystemWindows()

This method is deprecated.

final boolean requestFocusFromTouch() void requestLayout() void requestPointerCapture() boolean requestRectangleOnScreen(Rect p) final void requestUnbufferedDispatch(MotionEvent p) final T <T extends View> requireViewById(int p) void resetPivot() static int resolveSize(int p, int p1) static int resolveSizeAndState(int p, int p1, int p2) void restoreHierarchyState(SparseArray<Parcelable> p) final void saveAttributeDataForStyleable(
    Context p,
    int[] p1,
    AttributeSet p2,
    TypedArray p3,
    int p4,
    int p5
)
void saveHierarchyState(SparseArray<Parcelable> p) void scheduleDrawable(Drawable p, Runnable p1, long p2) void scrollBy(int p, int p1) void scrollTo(int p, int p1) void sendAccessibilityEvent(int p) void sendAccessibilityEventUnchecked(AccessibilityEvent p) void setAccessibilityDataSensitive(int p) void setAccessibilityDelegate(View.AccessibilityDelegate p) void setAccessibilityHeading(boolean p) void setAccessibilityLiveRegion(int p) void setAccessibilityPaneTitle(CharSequence p) void setAccessibilityTraversalAfter(int p) void setAccessibilityTraversalBefore(int p) void setActivated(boolean p) void setAllowClickWhenDisabled(boolean p) void setAllowedHandwritingDelegatePackage(String p) void setAllowedHandwritingDelegatorPackage(String p) void setAlpha(float p) void setAnimation(Animation p) void setAnimationMatrix(Matrix p) void setAutoHandwritingEnabled(boolean p) void setAutofillHints(String[] p) void setAutofillId(AutofillId p) void setBackground(Drawable p) void setBackgroundColor(int p) void setBackgroundDrawable(Drawable p)

This method is deprecated.

void setBackgroundResource(int p) void setBackgroundTintBlendMode(BlendMode p) void setBackgroundTintList(ColorStateList p) void setBackgroundTintMode(PorterDuff.Mode p) final void setBottom(int p) void setCameraDistance(float p) void setClickable(boolean p) void setClipBounds(Rect p) void setClipToOutline(boolean p) void setContentCaptureSession(ContentCaptureSession p) void setContentDescription(CharSequence p) final void setContentSensitivity(int p) void setContextClickable(boolean p) void setDefaultFocusHighlightEnabled(boolean p) void setDrawingCacheBackgroundColor(int p)

This method is deprecated.

void setDrawingCacheEnabled(boolean p)

This method is deprecated.

void setDrawingCacheQuality(int p)

This method is deprecated.

void setDuplicateParentStateEnabled(boolean p) void setElevation(float p) void setEnabled(boolean p) void setFadingEdgeLength(int p) void setFilterTouchesWhenObscured(boolean p) void setFitsSystemWindows(boolean p) void setFocusable(boolean p) void setFocusableInTouchMode(boolean p) void setFocusedByDefault(boolean p) void setForceDarkAllowed(boolean p) void setForeground(Drawable p) void setForegroundGravity(int p) void setForegroundTintBlendMode(BlendMode p) void setForegroundTintList(ColorStateList p) void setForegroundTintMode(PorterDuff.Mode p) void setFrameContentVelocity(float p) void setHandwritingBoundsOffsets(float p, float p1, float p2, float p3) void setHandwritingDelegateFlags(int p) void setHandwritingDelegatorCallback(Runnable p) void setHapticFeedbackEnabled(boolean p) void setHasTransientState(boolean p) void setHorizontalFadingEdgeEnabled(boolean p) void setHorizontalScrollBarEnabled(boolean p) void setHorizontalScrollbarThumbDrawable(Drawable p) void setHorizontalScrollbarTrackDrawable(Drawable p) void setHovered(boolean p) void setId(int p) void setImportantForAccessibility(int p) void setImportantForAutofill(int p) void setImportantForContentCapture(int p) void setIsCredential(boolean p) void setIsHandwritingDelegate(boolean p) void setKeepScreenOn(boolean p) void setKeyboardNavigationCluster(boolean p) void setLabelFor(int p) void setLayerPaint(Paint p) void setLayerType(int p, Paint p1) void setLayoutDirection(int p) void setLayoutParams(ViewGroup.LayoutParams p) final void setLeft(int p) final void setLeftTopRightBottom(int p, int p1, int p2, int p3) void setLongClickable(boolean p) final void setMeasuredDimension(int p, int p1) void setMinimumHeight(int p) void setMinimumWidth(int p) void setNestedScrollingEnabled(boolean p) void setNextClusterForwardId(int p) void setNextFocusDownId(int p) void setNextFocusForwardId(int p) void setNextFocusLeftId(int p) void setNextFocusRightId(int p) void setNextFocusUpId(int p) void setOnApplyWindowInsetsListener(View.OnApplyWindowInsetsListener p) void setOnCapturedPointerListener(View.OnCapturedPointerListener p) void setOnClickListener(View.OnClickListener p) void setOnContextClickListener(View.OnContextClickListener p) void setOnCreateContextMenuListener(View.OnCreateContextMenuListener p) void setOnDragListener(View.OnDragListener p) void setOnFocusChangeListener(View.OnFocusChangeListener p) void setOnGenericMotionListener(View.OnGenericMotionListener p) void setOnHoverListener(View.OnHoverListener p) void setOnKeyListener(View.OnKeyListener p) void setOnLongClickListener(View.OnLongClickListener p) void setOnReceiveContentListener(String[] p, OnReceiveContentListener p1) void setOnScrollChangeListener(View.OnScrollChangeListener p) void setOnSystemUiVisibilityChangeListener(
    View.OnSystemUiVisibilityChangeListener p
)

This method is deprecated.

void setOnTouchListener(View.OnTouchListener p) void setOutlineAmbientShadowColor(int p) void setOutlineProvider(ViewOutlineProvider p) void setOutlineSpotShadowColor(int p) void setOverScrollMode(int p) void setPadding(int p, int p1, int p2, int p3) void setPaddingRelative(int p, int p1, int p2, int p3) void setPendingCredentialRequest(
    GetCredentialRequest p,
    OutcomeReceiver<GetCredentialResponseGetCredentialException> p1
)
void setPivotX(float p) void setPivotY(float p) void setPointerIcon(PointerIcon p) final void setPreferKeepClear(boolean p) final void setPreferKeepClearRects(List<Rect> p) void setPressed(boolean p) void setRenderEffect(RenderEffect p) final void setRevealOnFocusHint(boolean p) final void setRight(int p) void setRotation(float p) void setRotationX(float p) void setRotationY(float p) void setSaveEnabled(boolean p) void setSaveFromParentEnabled(boolean p) void setScaleX(float p) void setScaleY(float p) void setScreenReaderFocusable(boolean p) void setScrollBarDefaultDelayBeforeFade(int p) void setScrollBarFadeDuration(int p) void setScrollBarSize(int p) void setScrollBarStyle(int p) final void setScrollCaptureCallback(ScrollCaptureCallback p) void setScrollCaptureHint(int p) void setScrollContainer(boolean p) void setScrollIndicators(int p) void setScrollX(int p) void setScrollY(int p) void setScrollbarFadingEnabled(boolean p) void setSelected(boolean p) void setSoundEffectsEnabled(boolean p) void setStateDescription(CharSequence p) void setStateListAnimator(StateListAnimator p) void setSupplementalDescription(CharSequence p) void setSystemGestureExclusionRects(List<Rect> p) void setSystemUiVisibility(int p)

This method is deprecated.

void setTag(int p, Object p1) void setTextAlignment(int p) void setTextDirection(int p) void setTooltipText(CharSequence p) final void setTop(int p) void setTouchDelegate(TouchDelegate p) void setTransitionAlpha(float p) final void setTransitionName(String p) void setTransitionVisibility(int p) void setTranslationX(float p) void setTranslationY(float p) void setTranslationZ(float p) void setVerticalFadingEdgeEnabled(boolean p) void setVerticalScrollBarEnabled(boolean p) void setVerticalScrollbarPosition(int p) void setVerticalScrollbarThumbDrawable(Drawable p) void setVerticalScrollbarTrackDrawable(Drawable p) void setViewTranslationCallback(ViewTranslationCallback p) void setVisibility(int p) void setWillNotCacheDrawing(boolean p)

This method is deprecated.

void setWillNotDraw(boolean p) void setX(float p) void setY(float p) void setZ(float p) boolean showContextMenu() ActionMode startActionMode(ActionMode.Callback p) void startAnimation(Animation p) final boolean startDrag(ClipData p, View.DragShadowBuilder p1, Object p2, int p3)

This method is deprecated.

final boolean startDragAndDrop(
    ClipData p,
    View.DragShadowBuilder p1,
    Object p2,
    int p3
)
boolean startNestedScroll(int p) void stopNestedScroll() String toString() void transformMatrixToGlobal(Matrix p) void transformMatrixToLocal(Matrix p) void unscheduleDrawable(Drawable p) final void updateDragShadow(View.DragShadowBuilder p) boolean verifyDrawable(Drawable p) boolean willNotCacheDrawing()

This method is deprecated.

boolean willNotDraw() From android.view.ViewGroup void addChildrenForAccessibility(ArrayList<View> p) void addExtraDataToAccessibilityNodeInfo(
    AccessibilityNodeInfo p,
    String p1,
    Bundle p2
)
void addFocusables(ArrayList<View> p, int p1, int p2) void addKeyboardNavigationClusters(Collection<View> p, int p1) boolean addStatesFromChildren() void addTouchables(ArrayList<View> p) void addView(View p) boolean addViewInLayout(View p, int p1, ViewGroup.LayoutParams p2) void attachLayoutAnimationParameters(
    View p,
    ViewGroup.LayoutParams p1,
    int p2,
    int p3
)
void attachViewToParent(View p, int p1, ViewGroup.LayoutParams p2) void bringChildToFront(View p) boolean canAnimate() boolean checkLayoutParams(ViewGroup.LayoutParams p) void childDrawableStateChanged(View p) void childHasTransientStateChanged(View p, boolean p1) void cleanupLayoutState(View p) void clearChildFocus(View p) void clearDisappearingChildren() void clearFocus() void debug(int p) void detachAllViewsFromParent() void detachViewFromParent(View p) void detachViewsFromParent(int p, int p1) WindowInsets dispatchApplyWindowInsets(WindowInsets p) boolean dispatchCapturedPointerEvent(MotionEvent p) void dispatchConfigurationChanged(Configuration p) void dispatchCreateViewTranslationRequest(
    Map<AutofillId, long[]> p,
    int[] p1,
    TranslationCapability p2,
    List<ViewTranslationRequest> p3
)
void dispatchDisplayHint(int p) boolean dispatchDragEvent(DragEvent p) void dispatchDraw(Canvas p) void dispatchDrawableHotspotChanged(float p, float p1) void dispatchFinishTemporaryDetach() void dispatchFreezeSelfOnly(SparseArray<Parcelable> p) boolean dispatchGenericFocusedEvent(MotionEvent p) boolean dispatchGenericPointerEvent(MotionEvent p) boolean dispatchHoverEvent(MotionEvent p) boolean dispatchKeyEvent(KeyEvent p) boolean dispatchKeyEventPreIme(KeyEvent p) boolean dispatchKeyShortcutEvent(KeyEvent p) void dispatchPointerCaptureChanged(boolean p) void dispatchProvideAutofillStructure(ViewStructure p, int p1) void dispatchProvideStructure(ViewStructure p) void dispatchRestoreInstanceState(SparseArray<Parcelable> p) void dispatchSaveInstanceState(SparseArray<Parcelable> p) void dispatchScrollCaptureSearch(
    Rect p,
    Point p1,
    Consumer<ScrollCaptureTarget> p2
)
void dispatchSetActivated(boolean p) void dispatchSetPressed(boolean p) void dispatchSetSelected(boolean p) void dispatchStartTemporaryDetach() void dispatchSystemUiVisibilityChanged(int p)

This method is deprecated.

void dispatchThawSelfOnly(SparseArray<Parcelable> p) boolean dispatchTouchEvent(MotionEvent p) boolean dispatchTrackballEvent(MotionEvent p) boolean dispatchUnhandledMove(View p, int p1) void dispatchVisibilityChanged(View p, int p1) void dispatchWindowFocusChanged(boolean p) void dispatchWindowInsetsAnimationEnd(WindowInsetsAnimation p) void dispatchWindowInsetsAnimationPrepare(WindowInsetsAnimation p) WindowInsets dispatchWindowInsetsAnimationProgress(
    WindowInsets p,
    List<WindowInsetsAnimation> p1
)
WindowInsetsAnimation.Bounds dispatchWindowInsetsAnimationStart(
    WindowInsetsAnimation p,
    WindowInsetsAnimation.Bounds p1
)
void dispatchWindowSystemUiVisiblityChanged(int p)

This method is deprecated.

void dispatchWindowVisibilityChanged(int p) boolean drawChild(Canvas p, View p1, long p2) void drawableStateChanged() void endViewTransition(View p) View findFocus() OnBackInvokedDispatcher findOnBackInvokedDispatcherForChild(View p, View p1) void findViewsWithText(ArrayList<View> p, CharSequence p1, int p2) View focusSearch(View p, int p1) void focusableViewAvailable(View p) boolean gatherTransparentRegion(Region p) ViewGroup.LayoutParams generateDefaultLayoutParams() ViewGroup.LayoutParams generateLayoutParams(AttributeSet p) CharSequence getAccessibilityClassName() View getChildAt(int p) int getChildCount() final int getChildDrawingOrder(int p) static int getChildMeasureSpec(int p, int p1, int p2) boolean getChildStaticTransformation(View p, Transformation p1) boolean getChildVisibleRect(View p, Rect p1, Point p2) boolean getClipChildren() boolean getClipToPadding() int getDescendantFocusability() View getFocusedChild() LayoutAnimationController getLayoutAnimation() Animation.AnimationListener getLayoutAnimationListener() int getLayoutMode() LayoutTransition getLayoutTransition() int getNestedScrollAxes() ViewGroupOverlay getOverlay() int getPersistentDrawingCache()

This method is deprecated.

boolean getTouchscreenBlocksFocus() boolean hasFocus() boolean hasTransientState() int indexOfChild(View p) final void invalidateChild(View p, Rect p1)

This method is deprecated.

ViewParent invalidateChildInParent(int[] p, Rect p1)

This method is deprecated.

boolean isAlwaysDrawnWithCacheEnabled()

This method is deprecated.

boolean isAnimationCacheEnabled()

This method is deprecated.

boolean isChildrenDrawingOrderEnabled() boolean isChildrenDrawnWithCacheEnabled()

This method is deprecated.

boolean isLayoutSuppressed() boolean isMotionEventSplittingEnabled() boolean isTransitionGroup() void jumpDrawablesToCurrentState() final void layout(int p, int p1, int p2, int p3) void measureChild(View p, int p1, int p2) void measureChildWithMargins(View p, int p1, int p2, int p3, int p4) void measureChildren(int p, int p1) void notifySubtreeAccessibilityStateChanged(View p, View p1, int p2) final void offsetDescendantRectToMyCoords(View p, Rect p1) final void offsetRectIntoDescendantCoords(View p, Rect p1) void onAttachedToWindow() int[] onCreateDrawableState(int p) void onDescendantInvalidated(View p, View p1) void onDetachedFromWindow() boolean onInterceptHoverEvent(MotionEvent p) boolean onInterceptTouchEvent(MotionEvent p) boolean onNestedFling(View p, float p1, float p2, boolean p3) boolean onNestedPreFling(View p, float p1, float p2) boolean onNestedPrePerformAccessibilityAction(View p, int p1, Bundle p2) void onNestedPreScroll(View p, int p1, int p2, int[] p3) void onNestedScroll(View p, int p1, int p2, int p3, int p4) void onNestedScrollAccepted(View p, View p1, int p2) boolean onRequestFocusInDescendants(int p, Rect p1) boolean onRequestSendAccessibilityEvent(View p, AccessibilityEvent p1) PointerIcon onResolvePointerIcon(MotionEvent p, int p1) boolean onStartNestedScroll(View p, View p1, int p2) void onStopNestedScroll(View p) void onViewAdded(View p) void onViewRemoved(View p) void propagateRequestedFrameRate(float p, boolean p1) void recomputeViewAttributes(View p) void removeAllViews() void removeAllViewsInLayout() void removeDetachedView(View p, boolean p1) void removeView(View p) void removeViewAt(int p) void removeViewInLayout(View p) void removeViews(int p, int p1) void removeViewsInLayout(int p, int p1) void requestChildFocus(View p, View p1) boolean requestChildRectangleOnScreen(View p, Rect p1, boolean p2) void requestDisallowInterceptTouchEvent(boolean p) boolean requestFocus(int p, Rect p1) boolean requestSendAccessibilityEvent(View p, AccessibilityEvent p1) void requestTransparentRegion(View p) boolean restoreDefaultFocus() void scheduleLayoutAnimation() void setAddStatesFromChildren(boolean p) void setAlwaysDrawnWithCacheEnabled(boolean p)

This method is deprecated.

void setAnimationCacheEnabled(boolean p)

This method is deprecated.

void setChildrenDrawingCacheEnabled(boolean p)

This method is deprecated.

void setChildrenDrawingOrderEnabled(boolean p) void setChildrenDrawnWithCacheEnabled(boolean p)

This method is deprecated.

void setClipChildren(boolean p) void setClipToPadding(boolean p) void setDescendantFocusability(int p) void setLayoutAnimation(LayoutAnimationController p) void setLayoutAnimationListener(Animation.AnimationListener p) void setLayoutMode(int p) void setLayoutTransition(LayoutTransition p) void setMotionEventSplittingEnabled(boolean p) void setOnHierarchyChangeListener(ViewGroup.OnHierarchyChangeListener p) void setPersistentDrawingCache(int p)

This method is deprecated.

void setRequestedFrameRate(float p) void setStaticTransformationsEnabled(boolean p) void setTouchscreenBlocksFocus(boolean p) void setTransitionGroup(boolean p) void setWindowInsetsAnimationCallback(WindowInsetsAnimation.Callback p) boolean shouldDelayChildPressedState() boolean showContextMenuForChild(View p) ActionMode startActionModeForChild(View p, ActionMode.Callback p1) void startLayoutAnimation() void startViewTransition(View p) void suppressLayout(boolean p) void updateViewLayout(View p, ViewGroup.LayoutParams p1) Public methods
public void destroy()

Destroys the ad view. This method should be called in the parent Activity's onDestroy method. No other methods should be called on the ad view after destroy is called.

public @Nullable AdSize getAdSize()

Returns the size of the ad. Returns null if setAdSize hasn't been called yet.

ref com.google.android.gms.ads.R.styleable#AdsAttrs_adSize

public String getAdUnitId()

Returns the ad unit ID.

ref com.google.android.gms.ads.R.styleable#AdsAttrs_adUnitId

public boolean isCollapsible()

Returns true if the ad is a collapsible banner; returns false until an ad is loaded.

public boolean isLoading()

Returns true if the ad is loading.

public void pause()

Pauses any extra processing associated with this ad view. This method should be called in the parent Activity's onPause method.

public void resume()

Resumes an ad view after a previous call to pause. This method should be called in the parent Activity's onResume method.

public void setAdSize(AdSize adSize)

Sets the size of the ad.

ref com.google.android.gms.ads.R.styleable#AdsAttrs_adSize

public void setAdUnitId(String adUnitId)

Sets the ad unit ID.

ref com.google.android.gms.ads.R.styleable#AdsAttrs_adUnitId

Protected methods
protected void onLayout(boolean changed, int left, int top, int right, int bottom)
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-02-25 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-25 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3