Android APIs
public final class

NativeAppInstallAdView

extends NativeAdView
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ com.google.android.gms.ads.formats.NativeAdView
           ↳ com.google.android.gms.ads.formats.NativeAppInstallAdView

Class Overview

Root view for all Google native app install ads.

XML layout files for native app install ads should use NativeAppInstallAdView as the root element for their native assets, and dynamically created views that will contain native app install ad assets should use an instance of this class as their root ViewGroup.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
NativeAppInstallAdView(Context context)
NativeAppInstallAdView(Context context, AttributeSet attrs)
NativeAppInstallAdView(Context context, AttributeSet attrs, int defStyleAttr)
NativeAppInstallAdView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
final View getBodyView()
Returns the view associated with the body asset.
final View getCallToActionView()
Returns the view associated with the call to action asset.
final View getHeadlineView()
Returns the view associated with the headline asset.
final View getIconView()
Returns the view associated with the icon asset.
final View getImageView()
Returns the view associated with the image asset.
final View getPriceView()
Returns the view associated with the price asset.
final View getStarRatingView()
Returns the view associated with the star rating asset.
final View getStoreView()
Returns the view associated with the store asset.
final void setBodyView(View view)
Sets a view for the body asset.
final void setCallToActionView(View view)
Sets a view for the call to action asset.
final void setHeadlineView(View view)
Sets a view for the headline asset.
final void setIconView(View view)
Sets a view for the icon asset.
final void setImageView(View view)
Sets a view for the image asset.
final void setPriceView(View view)
Sets a view for the price asset.
final void setStarRatingView(View view)
Sets a view for the star rating asset.
final void setStoreView(View view)
Sets a view for the store asset.
[Expand]
Inherited Methods
From class com.google.android.gms.ads.formats.NativeAdView
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public NativeAppInstallAdView (Context context)

public NativeAppInstallAdView (Context context, AttributeSet attrs)

public NativeAppInstallAdView (Context context, AttributeSet attrs, int defStyleAttr)

public NativeAppInstallAdView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public final View getBodyView ()

Returns the view associated with the body asset.

public final View getCallToActionView ()

Returns the view associated with the call to action asset.

public final View getHeadlineView ()

Returns the view associated with the headline asset.

public final View getIconView ()

Returns the view associated with the icon asset.

public final View getImageView ()

Returns the view associated with the image asset.

public final View getPriceView ()

Returns the view associated with the price asset.

public final View getStarRatingView ()

Returns the view associated with the star rating asset.

public final View getStoreView ()

Returns the view associated with the store asset.

public final void setBodyView (View view)

Sets a view for the body asset.

Parameters
view The view to set

public final void setCallToActionView (View view)

Sets a view for the call to action asset.

Parameters
view The view to set

public final void setHeadlineView (View view)

Sets a view for the headline asset.

Parameters
view The view to set

public final void setIconView (View view)

Sets a view for the icon asset.

Parameters
view The view to set

public final void setImageView (View view)

Sets a view for the image asset.

Parameters
view The view to set

public final void setPriceView (View view)

Sets a view for the price asset.

Parameters
view The view to set

public final void setStarRatingView (View view)

Sets a view for the star rating asset.

Parameters
view The view to set

public final void setStoreView (View view)

Sets a view for the store asset.

Parameters
view The view to set