title: Banner ad not occupying full width
body: <p>i am able to center my banner using gravity class, but i am not able to stretch my banner to occupy full width.</p>
  
  <p>And also i tried smart_banner which supposed to fill according to the density, but with no success.</p>
  
  <p>need help</p>
  
  <pre><code>RelativeLayout layout = (RelativeLayout)findViewById(R.id.ultimaterellayout);
   // Create the adView
  
      AdView adView = new AdView(MainActivity.this, AdSize.BANNER, "aaa324dsfdfsd");
  
  
      RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
      layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
      layout.setGravity(Gravity.CENTER_HORIZONTAL);
      layout.addView(adView, layoutParams);
      layout.invalidate();
  
    // layout.addView(adView);
     adView.loadAd(adRequest);
  </code></pre>