0
	 * @param context 
	 */ 
	public OpenxAdView(Context context) {
		super(context);
		this.res = context.getResources();
		this.webView = new WebView(context);
		initWebView(); 
	} 
 
	/** 
	 * Initialize widget. If delivery_url and zone_id attributes were set in 
	 * layout file, ad will be loaded automatically. 
	 *  
	 * @param context 
	 * @param attrs 
	 * @param defStyle 
	 */ 
	public OpenxAdView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		this.res = context.getResources();
		initAttributes(attrs);
		this.webView = new WebView(context, attrs, defStyle);
		initWebView(); 
	} 
 
	/** 
	 * Initialize widget. If delivery_url and zone_id attributes were set in 
	 * layout file, ad will be loaded automatically. 
	 *  
	 * @param context 
	 * @param attrs 
	 */ 
	public OpenxAdView(Context context, AttributeSet attrs) {
		super(context, attrs);
		this.res = context.getResources();
		initAttributes(attrs);
		this.webView = new WebView(context, attrs);
		initWebView(); 
	} 
	 
	private void initAttributes(AttributeSet attrs) {
		setDeliveryURL(attrs);
		setJsTagURL(attrs);
		setZoneID(attrs);
		setHasHTTPS(attrs);
		setSource(attrs);
	} 
	 
	private void initWebView() { 
        WebSettings settings = webView.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setPluginsEnabled(true);
        settings.setAllowFileAccess(false);
        settings.setPluginState(WebSettings.PluginState.ON);
         
        webView.setBackgroundColor(0x00000000); // transparent
        webView.setVerticalScrollBarEnabled(false);
        webView.setHorizontalScrollBarEnabled(false);
        webView.setWebChromeClient(new OpenXAdWebChromeClient());
 
        addView(webView);
	} 
	 
	protected String getZoneTemplate(int zoneID) {
Connect your IDE to all the code out there  Get Codota for Java