layout = new RelativeLayout(this);
        surface = new SurfaceView(this);
        ads = new AdView(this);
        ads.setAdSize(AdSize.SMART_BANNER);
        ads.setAdUnitId("admob banner ID");
        Ads.loadAds(ads);
        layout.addView(surface);
         RelativeLayout.LayoutParams adParams = 
         new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, 
         RelativeLayout.LayoutParams.WRAP_CONTENT);
         adParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
        layout.addView(ads, adParams);
        setContentView(layout);
        holder = surface.getHolder();
here s the problem. I tried above code to integrate banner but it is covering portion od my app and hides some buttons. what can be the problem here? need help. please note that i am not using XML layout.