NativeAdScrollView
有此級別的更新版本。前往查看 最新版本。

NativeAdScrollView provides a horizontal scrolling experience hosting either NativeAdViews or custom views. It must be constructed with a loaded NativeAdsManager

NativeAdScrollView can be declared using a template view as follows:

NativeAdScrollView scrollView = new NativeAdScrollView(context, adsManager, NativeAdView.Type.HEIGHT_300); addView(scrollView);

延伸:LinearLayout
套件:ads
建構函式
NativeAdScrollView(Context, NativeAdsManager, AdViewProvider)
public NativeAdScrollView(Context context, NativeAdsManager manager, AdViewProvider viewProvider)
參數說明
context
manager
viewProvider
NativeAdScrollView(Context, NativeAdsManager, AdViewProvider, int)
public NativeAdScrollView(Context context, NativeAdsManager manager, AdViewProvider viewProvider, int maxAds)
參數說明
context
manager
viewProvider
maxAds
NativeAdScrollView(Context, NativeAdsManager, Type)
public NativeAdScrollView(Context context, NativeAdsManager manager, Type type)
參數說明
context
manager
type
NativeAdScrollView(Context, NativeAdsManager, Type, NativeAdViewAttributes)
public NativeAdScrollView(Context context, NativeAdsManager manager, Type type, NativeAdViewAttributes attributes)
參數說明
context
manager
type
attributes
NativeAdScrollView(Context, NativeAdsManager, Type, NativeAdViewAttributes, int)
public NativeAdScrollView(Context context, NativeAdsManager manager, Type type, NativeAdViewAttributes attributes, int maxAds)
參數說明
context
manager
type
attributes
maxAds
執行個體方法
setInset(int)
public void setInset(int inset)
參數說明
inset
常數
DEFAULT_MAX_ADS
public static final int DEFAULT_MAX_ADS
DEFAULT_INSET
public static final int DEFAULT_INSET