title: How to implement webview in a listview in Android?
body: <p>I am trying to implement a webview inside a listview. But not able to figure it out. </p>
  
  <p>Sorry for the basic question. This is what my code looks like so far. </p>
  
  <pre><code>public class MainActivity extends Activity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      ListView lv = (ListView)findViewById(R.id.listView2);
      ListAdapter adapter = new ListAdapter(this);
  
      lv.setAdapter(adapter);
  }
  
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
  
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.main, menu);
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // Handle action bar item clicks here. The action bar will
      // automatically handle clicks on the Home/Up button, so long
      // as you specify a parent activity in AndroidManifest.xml.
      int id = item.getItemId();
      if (id == R.id.action_settings) {
          return true;
      }
      return super.onOptionsItemSelected(item);
  }
  
  }
  </code></pre>
  
  <p>and this is my xml part:</p>
  
  <pre><code>&lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_height="fill_parent"
  android:layout_width="fill_parent"
  android:orientation="vertical"&gt;
  
  &lt;ListView
      android:layout_height="fill_parent"
      android:id="@+id/listView2"
      android:layout_width="fill_parent"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>