I got a problem when I wanted to put my large-sized photos from my storage into small imageViews. I´m wondering how to put these kind of photos inside a small imageViews without decreasing app speed or crashing.
I have a RecyclerView that shows some pictures from storage in a list. Here is my recycler adapter code.
Thanks for your help.

```
class Adapter(files: ArrayList<File>):RecyclerView.Adapter<Adapter.myViewHolder>() {

    val files: ArrayList<File> = files

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): myViewHolder {
        val view = LayoutInflater.from(parent.context).inflate(R.layout.item_complex_note_view , parent , false)
        return myViewHolder(view)
    }

    override fun getItemCount(): Int {
        return files.size
    }

    override fun onBindViewHolder(holder: myViewHolder, position: Int) {
        holder.bind(files.get(position))
    }

    class myViewHolder(itemView: View):RecyclerView.ViewHolder(itemView){
            lateinit var imageView: ImageView

        init {
            imageView = itemView.findViewById(R.id.complex_note_view_item_imageview)
        }

        fun bind(file: File) {           
            imageView.setImageURI(file.toUri())
        }
    }
}

```