Code example for RelativeLayout

Methods: setLayoutParams

0
		// int width = (int) (320 * metrics.density); 
		// int height = (int) (50 * metrics.density); 
 
		RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, //
				RelativeLayout.LayoutParams.WRAP_CONTENT);
		RelativeLayout relativeLayout = new RelativeLayout(activity);
		relativeLayout.setLayoutParams(layoutParams);
 
		String adId = serverParameter;
 
		AdController leadboltAdController = new AdController(activity, adId, new LeadboltAdListener(listener, relativeLayout));
		leadboltAdController.setLayout(relativeLayout);
		// leadboltAdController.setAsynchTask(false); 
		leadboltAdController.loadAd();
		 
		Log.d(LeadBoltAdapterTag, "requestBannerAd method finished");
	} 
 
	@Override 
	public void destroy() {