Skip to content

Instantly share code, notes, and snippets.

@DjakaTechnology
Last active March 11, 2019 12:35
Show Gist options
  • Save DjakaTechnology/0c38c4572d8e2ac4fbb80ccf35245430 to your computer and use it in GitHub Desktop.
Save DjakaTechnology/0c38c4572d8e2ac4fbb80ccf35245430 to your computer and use it in GitHub Desktop.
if (data[i].value != null) {
Glide.with(c).load(data[i].value).apply(
RequestOptions()
.placeholder(R.drawable.loading)
.fitCenter()
).into(myViewHolder.itemView.img_thumbnail)
myViewHolder.itemView.img_thumbnail.setOnClickListener {
var i = Intent(c, ImageActivity::class.java)
i.putExtra(SharedKey.App.ID, data[myViewHolder.adapterPosition].value)
c.startActivity(i)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment