NativeAdViewAttributes
Đã 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.

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.

Mở rộng:Object
Gói:ads
Xây dựng
NativeAdViewAttributes()
public NativeAdViewAttributes()
NativeAdViewAttributes(JSONObject)
public NativeAdViewAttributes(JSONObject configObject)
Thông sốMô tả
configObject
Phương thức thực thể
setTypeface(Typeface)
public NativeAdViewAttributes setTypeface(Typeface typeface)
Thông sốMô tả
typeface
getTypeface()
public Typeface getTypeface()
setBackgroundColor(int)
public NativeAdViewAttributes setBackgroundColor(int backgroundColor)
Thông sốMô tả
backgroundColor
getBackgroundColor()
public int getBackgroundColor()
setTitleTextColor(int)
public NativeAdViewAttributes setTitleTextColor(int titleTextColor)
Thông sốMô tả
titleTextColor
getTitleTextColor()
public int getTitleTextColor()
setDescriptionTextColor(int)
public NativeAdViewAttributes setDescriptionTextColor(int descriptionTextColor)
Thông sốMô tả
descriptionTextColor
getDescriptionTextColor()
public int getDescriptionTextColor()
setButtonColor(int)
public NativeAdViewAttributes setButtonColor(int buttonColor)
Thông sốMô tả
buttonColor
getButtonColor()
public int getButtonColor()
setButtonTextColor(int)
public NativeAdViewAttributes setButtonTextColor(int buttonTextColor)
Thông sốMô tả
buttonTextColor
getButtonTextColor()
public int getButtonTextColor()
setButtonBorderColor(int)
public NativeAdViewAttributes setButtonBorderColor(int buttonBorderColor)
Thông sốMô tả
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)
Thông sốMô tả
autoplay
setAutoplay(boolean)
public NativeAdViewAttributes setAutoplay(boolean autoplay)
Thông sốMô tả
autoplay