NativeAdScrollView
Đã có phiên bản mới hơn của lớp này. Hãy kiểm tra phiên bản mới nhất.

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);

Mở rộng:LinearLayout
Gói:ads
Xây dựng
NativeAdScrollView(Context, NativeAdsManager, AdViewProvider)
public NativeAdScrollView(Context context, NativeAdsManager manager, AdViewProvider viewProvider)
Thông sốMô tả
context
manager
viewProvider
NativeAdScrollView(Context, NativeAdsManager, AdViewProvider, int)
public NativeAdScrollView(Context context, NativeAdsManager manager, AdViewProvider viewProvider, int maxAds)
Thông sốMô tả
context
manager
viewProvider
maxAds
NativeAdScrollView(Context, NativeAdsManager, Type)
public NativeAdScrollView(Context context, NativeAdsManager manager, Type type)
Thông sốMô tả
context
manager
type
NativeAdScrollView(Context, NativeAdsManager, Type, NativeAdViewAttributes)
public NativeAdScrollView(Context context, NativeAdsManager manager, Type type, NativeAdViewAttributes attributes)
Thông sốMô tả
context
manager
type
attributes
NativeAdScrollView(Context, NativeAdsManager, Type, NativeAdViewAttributes, int)
public NativeAdScrollView(Context context, NativeAdsManager manager, Type type, NativeAdViewAttributes attributes, int maxAds)
Thông sốMô tả
context
manager
type
attributes
maxAds
Phương thức thực thể
setInset(int)
public void setInset(int inset)
Thông sốMô tả
inset
Hằng
DEFAULT_MAX_ADS
public static final int DEFAULT_MAX_ADS
DEFAULT_INSET
public static final int DEFAULT_INSET