Last active
March 11, 2019 12:35
-
-
Save DjakaTechnology/0c38c4572d8e2ac4fbb80ccf35245430 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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