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

Or with a custom view:

{@code NativeAdScrollView scrollView = new NativeAdScrollView(context, adsManager, new NativeAdScrollView.CustomAdView() {

확장: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