NativeAdView provides a templated view for a NativeAd with flexible width and height determined by NativeAdView.Type. The NativeAdView officially supports widths between 280dp and 375dp. An optional NativeAdViewAttributes object can customize the template view.
Mở rộng: | Object |
Gói: | ads |
NativeAdView()
public NativeAdView()
render(Context, NativeAd, Type)
public static View render(Context context, NativeAd nativeAd, Type type)
Thông số | Mô tả |
---|---|
context | |
nativeAd | |
type |
render(Context, NativeAd, Type, NativeAdViewAttributes)
public static View render(Context context, NativeAd nativeAd, Type type, NativeAdViewAttributes attributes)
Thông số | Mô tả |
---|---|
context | |
nativeAd | |
type | |
attributes |