类 NativeBannerLayoutUtils
java.lang.Object
com.tradplus.ads.mgr.banner.NativeBannerLayoutUtils
原生拼接横幅布局选择:native_ad_size=0 使用默认原布局,其他按服务器下发尺寸选择。
-
方法概要
修饰符和类型方法说明static StringgetNativeBannerLayoutName(com.tradplus.ads.base.adapter.TPBaseAdapter adapter) static intgetNativeBannerSize(com.tradplus.ads.base.adapter.TPBaseAdapter adapter) static voidsetupAssetRoundCorners(android.content.Context context, android.view.View adLayoutView, int nativeBannerSize) static voidsetupCloseButton(TPNativeAdRender adRender, com.tradplus.ads.base.adapter.TPBaseAdapter adapter, android.view.View.OnClickListener closeClickListener)
-
方法详细资料
-
getNativeBannerSize
public static int getNativeBannerSize(com.tradplus.ads.base.adapter.TPBaseAdapter adapter) -
getNativeBannerLayoutName
-
setupAssetRoundCorners
public static void setupAssetRoundCorners(android.content.Context context, android.view.View adLayoutView, int nativeBannerSize) -
setupCloseButton
public static void setupCloseButton(TPNativeAdRender adRender, com.tradplus.ads.base.adapter.TPBaseAdapter adapter, android.view.View.OnClickListener closeClickListener)
-