title: Implement click only on image not on text in custom listview
body: <p>I have a <code>custom Listview</code> where it contains <code>image</code> &amp; <code>text</code> and implemented the <code>OnItemClickListener</code> for list which should work only for image not for <code>text. OnItemClick</code> is working fine for image but there is a Fatal Exception when i click on text. Additionally image will be visible in list if it exists else it will be hide. </p>
  
  <p>Tried with <code>android:focusable="false"</code>, <code>android:clickable="false"</code> but still i am getting the below exception </p>
  
  <blockquote>
    <p>java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Bitmap com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable.getBitmap()' on a null object reference</p>
  </blockquote>
  
  <p>OnItemClick:</p>
  
  <pre><code>@Override
  public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
  
      final ImageView imageView1 = (ImageView) view.findViewById(R.id.imageList);
      final GlideBitmapDrawable bitmapDrawable = (GlideBitmapDrawable) imageView1.getDrawable();
      final Bitmap yourBitmap = bitmapDrawable.getBitmap();
      Dialog builder = new Dialog(this);
      builder.requestWindowFeature(Window.FEATURE_NO_TITLE);
      builder.getWindow().setBackgroundDrawable(
              new ColorDrawable(android.graphics.Color.TRANSPARENT));
      builder.setOnDismissListener(new DialogInterface.OnDismissListener() {
          @Override
          public void onDismiss(DialogInterface dialogInterface) {
              //nothing;
          }
      });
  
      ImageView imageView = new ImageView(this);
      imageView.setImageBitmap(yourBitmap);
  
  
  
      builder.addContentView(imageView, new RelativeLayout.LayoutParams(
              ViewGroup.LayoutParams.MATCH_PARENT,
              ViewGroup.LayoutParams.MATCH_PARENT));
      builder.show();
  
  
  }
  </code></pre>
  
  <p>How can i implement click only on image?</p>