title: how to make SetImagresource dynamic
body: <p>I'm using a glide library to transform image path in my sqlite database to <code>imageview</code> in my <code>expendablelistview</code>..now I want to make those pictures to be zoomable so I used a photoview library ..the problem I got is that I can only choose one pictures to be displayed when calling <code>photoView.setImageRessource</code>. How can I adapt it to zoom every time different picture (depending on what is clicked from url)</p>
  
  <p>This is my code:</p>
  
  <pre><code>case R.id.child3 :
      ImageView url = (ImageView) view;
      String urls;
      urls = cursor.getString(cursor.getColumnIndex(Database.DATABASE_CHILD_3));
      Glide.with(MainActivity.this).load(urls).into(url);
      url.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              AlertDialog.Builder mBuilder = new AlertDialog.Builder(MainActivity.this);
              View mView = getLayoutInflater().inflate(R.layout.dialog_custom_layout, null);
              PhotoView photoView = mView.findViewById(R.id.imageView);
              photoView.setImageResource(R.drawable.anatomy);
              mBuilder.setView(mView);
              AlertDialog mDialog = mBuilder.create();
              mDialog.show();
          }
      });
      break;
  </code></pre>