MediaView
这个类有新版本。查看 最新版本。

Mediaview displays native ad media content.

MediaView can be declared and added to view:

MediaView mediaView = new MediaView(context); addView(adView); mediaView.setNativeAd(nativeAd);

扩展:RelativeLayout
应用安装包:ads
构造函数
MediaView(Context, AttributeSet)
public MediaView(Context context, AttributeSet attributeSet)
参数描述
context
attributeSet
MediaView(Context)
public MediaView(Context context)
参数描述
context
实例方法
setNativeAd(NativeAd)
public void setNativeAd(NativeAd nativeAd)
参数描述
nativeAd
isAutoplay()
public boolean isAutoplay()
setAutoplay(boolean)
public void setAutoplay(boolean autoplay)
参数描述
autoplay