Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. revMob = RevMob.start(this, <<APPLICATION_ID>>);
  2. revMob.printEnvironmentInformation(this);
  3. revMob.setTestingMode(RevMobTestingMode.WITH_ADS);
  4. popup = revMob.createPopup(this, null);
  5. fullscreen = revMob.createFullscreen(this, null);
  6.  
  7. RevMobBanner banner = revMob.createBanner(this);
  8. LinearLayout l1 = new LinearLayout(this);
  9. l1.setOrientation(LinearLayout.VERTICAL);
  10. l1.setWeightSum(1.0f);
  11.  
  12. LinearLayout.LayoutParams p1 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, 0);
  13. p1.weight = 0.075f;
  14.  
  15. LinearLayout.LayoutParams p2 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, 0);
  16. p1.weight = 0.925f;
  17.  
  18. l1.addView(renderView, p1);
  19. l1.addView(banner, p2);
  20. setContentView(l1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement