Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to create android layout for banner in onUnityBannerLoaded (native java)

Discussion in 'Unity Ads & User Acquisition' started by AGulev, Jun 23, 2019.

  1. AGulev

    AGulev

    Joined:
    May 5, 2014
    Posts:
    6
    Now in example we have next line:
    ((ViewGroup) findViewById (R.id.unityads_example_layout_root)).addView (view);

    How to create Layout in native Java code for banner without R and xml files?