title: add web view inside a card recycler view
body: <p>I want to have a recycler view with cards.
  Within the cards I want to place a webView for iframe.
  Basically, I want to have a list of videos using iframe and recycler view.
  I have done the following and there is issue in my bind function.
  The output is showing nothing.</p>
  
  <p><strong>Main Activity</strong></p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      private RecyclerView recyclerView;
      private RecyclerView.Adapter adapter;
      private RecyclerView.LayoutManager layoutManager;
      private recycle_adapter recycleAdapter;
      private List&lt;url&gt; urlList;
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          recyclerView = (RecyclerView) findViewById(R.id.my_recycler_view);
  
          urlList = new ArrayList&lt;&gt;();
          adapter = new recycle_adapter(this,urlList);
  
          // use this setting to improve performance if you know that changes
          // in content do not change the layout size of the RecyclerView
          recyclerView.setHasFixedSize(true);
  
          // use a linear layout manager
          layoutManager = new LinearLayoutManager(this);
          recyclerView.setLayoutManager(layoutManager);
          recyclerView.setAdapter(adapter);
  
          prepareurl();
      }
  
      private void prepareurl(){
          String[] url_list = new String[]{"&lt;html&gt;&lt;body&gt;&lt;iframe class=\\\"youtube-player\\\" type=\\\"text/html\\\" width=\\\"400\\\"" +
                  " height=\\\"200\\\" src=\\\"http://www.youtube.com/embed/bIPcobKMB94\\\" frameborder=\\\"0\\\"&gt;&lt;/body&gt;&lt;/html&gt;"};
  
  
  
          url url=new url(url_list[0]);
          urlList.add(url);
  
          url=new url(url_list[0]);
          urlList.add(url);
  
          url=new url(url_list[0]);
          urlList.add(url);
  
          url=new url(url_list[0]);
          urlList.add(url);
  
          adapter.notifyDataSetChanged();
      }
  </code></pre>
  
  <p><strong>recycle_adapter</strong></p>
  
  <pre><code>    public class recycle_adapter extends RecyclerView.Adapter&lt;recycle_adapter.MyViewHolder&gt;{
  
      private Context mContext;
      private List&lt;url&gt; urlList;
  
      public recycle_adapter(Context mContext, List&lt;url&gt; urlList) {
          this.mContext = mContext;
          this.urlList = urlList;
      }
  
      @Override
      public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  
          View view = LayoutInflater.from(parent.getContext())
                  .inflate(R.layout.card, parent, false);
  
          MyViewHolder myViewHolder = new MyViewHolder(view);
  
          return myViewHolder;
      }
  
      @Override
      public void onBindViewHolder(MyViewHolder holder, int position) {
  
          url url=urlList.get(position);
          holder.webView.loadData(url.getUrl(),"text/html", "utf-8");
      }
  
      @Override
      public int getItemCount() {
          return 4;
      }
  
      public static class MyViewHolder extends RecyclerView.ViewHolder {
  
          WebView webView;
  
          public MyViewHolder(View itemView) {
              super(itemView);
              this.webView = (WebView) itemView.findViewById(R.id.web);
          }
      }
  
  }
  </code></pre>
  
  <p><strong>url class</strong></p>
  
  <pre><code>    public class url {
  
      private String urls;
      public url() {
      }
  
      public url(String urls) {
          this.urls = urls;
      }
  
      public String getUrl() {
          return urls;
      }
  
      public void setUrl(String urls) {
          this.urls = urls;
      }
  
  }
  </code></pre>
  
  <p><strong>activity_main.xml</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  
      &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/activity_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.recycle.MainActivity"&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/my_recycler_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:scrollbars="vertical" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>card.xml</strong></p>
  
  <pre><code>    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;android.support.v7.widget.CardView
          android:id="@+id/card"
          android:padding="4dp"
          android:layout_width="match_parent"
          android:layout_height="200dp"
          android:background="#456345"&gt;
  
          &lt;WebView
              android:id="@+id/web"
              android:layout_width="match_parent"
              android:layout_height="200dp" /&gt;
  
      &lt;/android.support.v7.widget.CardView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>