NativeAdViewAttributes

NativeAdViewAttributes controls layout and display elements of the NativeAdView. The attributes object must be created and fully initialized at NativeAdView creation time, changes to the attributes object after NativeAdView creation will not propagate to the view.

扩展:Object
应用安装包:ads
构造函数
NativeAdViewAttributes()
public NativeAdViewAttributes()
NativeAdViewAttributes(JSONObject)
public NativeAdViewAttributes(JSONObject configObject)
参数描述
configObject
实例方法
setTypeface(Typeface)
public NativeAdViewAttributes setTypeface(Typeface typeface)
参数描述
typeface
getTypeface()
public Typeface getTypeface()
setBackgroundColor(int)
public NativeAdViewAttributes setBackgroundColor(int backgroundColor)
参数描述
backgroundColor
getBackgroundColor()
public int getBackgroundColor()
setTitleTextColor(int)
public NativeAdViewAttributes setTitleTextColor(int titleTextColor)
参数描述
titleTextColor
getTitleTextColor()
public int getTitleTextColor()
setDescriptionTextColor(int)
public NativeAdViewAttributes setDescriptionTextColor(int descriptionTextColor)
参数描述
descriptionTextColor
getDescriptionTextColor()
public int getDescriptionTextColor()
setButtonColor(int)
public NativeAdViewAttributes setButtonColor(int buttonColor)
参数描述
buttonColor
getButtonColor()
public int getButtonColor()
setButtonTextColor(int)
public NativeAdViewAttributes setButtonTextColor(int buttonTextColor)
参数描述
buttonTextColor
getButtonTextColor()
public int getButtonTextColor()
setButtonBorderColor(int)
public NativeAdViewAttributes setButtonBorderColor(int buttonBorderColor)
参数描述
buttonBorderColor
getButtonBorderColor()
public int getButtonBorderColor()
getTitleTextSize()
public int getTitleTextSize()
getDescriptionTextSize()
public int getDescriptionTextSize()
getAutoplay()
public boolean getAutoplay()
getAutoplayOnMobile()
public boolean getAutoplayOnMobile()
setAutoplayOnMobile(boolean)
public NativeAdViewAttributes setAutoplayOnMobile(boolean autoplay)
参数描述
autoplay
setAutoplay(boolean)
public NativeAdViewAttributes setAutoplay(boolean autoplay)
参数描述
autoplay