public class NativeAdScrollView
extends LinearLayout
NativeAdScrollView can be declared using a template view as follows:
int templateHeightDp = 400;
NativeAdScrollView scrollView =
new NativeAdScrollView(context, adsManager, templateHeightDp);
addView(scrollView);
Modifier and Type | Class and Description |
---|---|
static interface |
NativeAdScrollView.AdViewProvider |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INSET |
static int |
DEFAULT_MAX_ADS |
Constructor and Description |
---|
NativeAdScrollView(Context context,
NativeAdsManager manager,
int nativeAdViewHeightDp) |
NativeAdScrollView(Context context,
NativeAdsManager manager,
int nativeAdViewHeightDp,
NativeAdViewAttributes attributes) |
NativeAdScrollView(Context context,
NativeAdsManager manager,
int nativeAdViewHeightDp,
NativeAdViewAttributes attributes,
int maxAds) |
NativeAdScrollView(Context context,
NativeAdsManager manager,
NativeAdScrollView.AdViewProvider viewProvider) |
NativeAdScrollView(Context context,
NativeAdsManager manager,
NativeAdScrollView.AdViewProvider viewProvider,
int maxAds) |
NativeAdScrollView(Context context,
NativeAdsManager manager,
NativeAdView.Type type)
Deprecated.
|
NativeAdScrollView(Context context,
NativeAdsManager manager,
NativeAdView.Type type,
NativeAdViewAttributes attributes)
Deprecated.
|
NativeAdScrollView(Context context,
NativeAdsManager manager,
NativeAdView.Type type,
NativeAdViewAttributes attributes,
int maxAds)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
setInset(int inset) |
public static final int DEFAULT_MAX_ADS
public static final int DEFAULT_INSET
public NativeAdScrollView(Context context, NativeAdsManager manager, NativeAdScrollView.AdViewProvider viewProvider)
context
- manager
- viewProvider
- public NativeAdScrollView(Context context, NativeAdsManager manager, NativeAdScrollView.AdViewProvider viewProvider, int maxAds)
context
- manager
- viewProvider
- maxAds
- public NativeAdScrollView(Context context, NativeAdsManager manager, int nativeAdViewHeightDp)
context
- manager
- nativeAdViewHeightDp
- public NativeAdScrollView(Context context, NativeAdsManager manager, int nativeAdViewHeightDp, NativeAdViewAttributes attributes)
context
- manager
- nativeAdViewHeightDp
- attributes
- public NativeAdScrollView(Context context, NativeAdsManager manager, int nativeAdViewHeightDp, NativeAdViewAttributes attributes, int maxAds)
context
- manager
- nativeAdViewHeightDp
- attributes
- maxAds
- @Deprecated public NativeAdScrollView(Context context, NativeAdsManager manager, NativeAdView.Type type)
NativeAdScrollView(Context, NativeAdsManager, int)
instead.@Deprecated public NativeAdScrollView(Context context, NativeAdsManager manager, NativeAdView.Type type, NativeAdViewAttributes attributes)
@Deprecated public NativeAdScrollView(Context context, NativeAdsManager manager, NativeAdView.Type type, NativeAdViewAttributes attributes, int maxAds)