类 NativeBannerLayoutUtils

java.lang.Object
com.tradplus.ads.mgr.banner.NativeBannerLayoutUtils

public final class NativeBannerLayoutUtils extends Object
原生拼接横幅布局选择:native_ad_size=0 使用默认原布局,其他按服务器下发尺寸选择。
  • 方法详细资料

    • getNativeBannerSize

      public static int getNativeBannerSize(com.tradplus.ads.base.adapter.TPBaseAdapter adapter)
    • getNativeBannerLayoutName

      public static String getNativeBannerLayoutName(com.tradplus.ads.base.adapter.TPBaseAdapter adapter)
    • 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)