title: Applying WebView on setOnClickListener
body: <p>Currently I'm a beginner in android. Right now I'm trying to make my ListView item open a layout which contain WebView when any item is clicked. Each item will direct to a different page. But I'm not sure how can I achieve this. This is my code.</p>
  
  <pre><code> @Override
  public View getView(int position, View convertView, ViewGroup parent) {
  
      View v = convertView;
  
      if (v == null) {
          LayoutInflater vi;
          vi = LayoutInflater.from(getContext());
          v = vi.inflate(R.layout.activity_listview, null);
      }
  
      FeedItem p = getItem(position);
  
      if (p != null) {
          TextView tt1 = (TextView) v.findViewById(R.id.title_text);
          TextView tt2 = (TextView) v.findViewById(R.id.date_text);
  
          if (tt1 != null) {
              tt1.setText(p.getTitle());
          }
  
  
          if (tt2 != null) {
              tt2.setText(p.getPubDate());
          }
  
          listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int position, long l) {
                  FeedItem q = getItem(position);
                  if(q.getLink() != null){
                  //Toast.makeText(getContext(), "" + q.getLink(), Toast.LENGTH_SHORT).show();
  
                  }
              }
          });
  
      }
  
  
  
  
      return v;
  
  }
  </code></pre>