package com.wrapp.android.webimageexample;

public class WebImageContainerView {
}

@@ -41,43 +41,1223 @@
 e;%0A%0A
-public class WebImageContainerView %7B
+import android.content.Context;%0Aimport android.util.AttributeSet;%0Aimport android.view.LayoutInflater;%0Aimport android.widget.LinearLayout;%0Aimport com.wrapp.android.webimage.WebImageView;%0A%0Aimport java.net.MalformedURLException;%0Aimport java.net.URL;%0A%0A@SuppressWarnings(%7B%22UnusedDeclaration%22%7D)%0Apublic class WebImageContainerView extends LinearLayout %7B%0A  private WebImageView webImageView;%0A%0A  public WebImageContainerView(Context context) %7B%0A    super(context);%0A    initialize(context);%0A  %7D%0A%0A  public WebImageContainerView(Context context, AttributeSet attrs) %7B%0A    super(context, attrs);%0A    initialize(context);%0A  %7D%0A%0A  private void initialize(Context context) %7B%0A    LayoutInflater layoutInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);%0A    layoutInflater.inflate(R.layout.web_image_container_view, this, true);%0A    webImageView = (WebImageView)findViewById(R.id.WebImageView);%0A  %7D%0A%0A  public void setImageUrl(String imageUrlString) %7B%0A    try %7B%0A      URL imageUrl = new URL(imageUrlString);%0A      webImageView.setImageResource(R.drawable.person_placeholder);%0A      webImageView.setImageUrl(imageUrl, true);%0A    %7D%0A    catch(MalformedURLException e) %7B%0A      e.printStackTrace();%0A    %7D%0A  %7D
 %0A%7D%0A

Implement web image container class