title: Making RecyclerView image fullscreen when clicked
body: <p>I want to make a <strong>recyclerview image fullscreen when clicked and display a button below as shown in this xml file</strong></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
  android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  android:paddingBottom="@dimen/activity_vertical_margin" &gt;
  
  &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Select"
      android:id="@+id/profileButton"
      android:layout_alignParentBottom="true"
      android:layout_centerHorizontal="true" /&gt;
  
  &lt;ImageView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/fullscreenView"
      android:layout_above="@+id/profileButton"
      /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>this is the <strong>Image Adapter</strong> I have so far</p>
  
  <pre><code>public class ImageAdapter extends 
  RecyclerView.Adapter&lt;ImageAdapter.ViewHolder&gt;
  {
  private File imagesFile;
  
  
  public ImageAdapter(File folderFile)
  {
      imagesFile = folderFile;
  }
  @Override
  public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
  {
      View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.gallery_images_relative_layout,parent,false);
      return new ViewHolder(view);
  }
  @Override
  public void onBindViewHolder(ViewHolder holder, int position)
  {
      File imageFile = imagesFile.listFiles()[position];
      Bitmap imageBitmap = BitmapFactory.decodeFile(imageFile.getAbsolutePath());
      holder.getImageView().setImageBitmap(imageBitmap);
  
  
  }
  @Override
  public int getItemCount()
  {
      if(MainActivity.checkIfGalleryEmpty(imagesFile)==true)
          return 0;
      else
          return imagesFile.listFiles().length;
  }
  
  public static class ViewHolder extends RecyclerView.ViewHolder
  {
      private ImageView imageView;
  
      public ViewHolder(View view)
      {
          super(view);
          imageView = (ImageView) view.findViewById(R.id.imageGalleryView);
  
      }
      public ImageView getImageView()
      {
          return imageView;
      }
  }
  }
  </code></pre>
  
  <p>I'm not sure where to put the <code>onClickListener</code> methods (should it be here or in my main?) or how to implement an <code>onClickListener</code> that displays an image larger. In addition the button displayed will have to perform a function, so that will have an <code>onClicklistener</code> as well, probably in another activity file. If you have any tips or suggestions on how to implement this considering the framework I have please let me know. I am also willing to post parts of my <code>MainActivity</code> file if that helps at all.</p>