Skip to content

Instantly share code, notes, and snippets.

@vamsitallapudi
Last active December 5, 2020 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vamsitallapudi/de197c8aa956d7804a40a656c101a451 to your computer and use it in GitHub Desktop.
Save vamsitallapudi/de197c8aa956d7804a40a656c101a451 to your computer and use it in GitHub Desktop.
override fun onBindViewHolder(postsViewHolder : ViewHolder, position: Int) {
val post = posts[position]
holder.title!!.text = post.title
holder.description!!.text = post.description
var hashtags = post.hashTags
val sb = StringBuilder()
hashtags.forEach {
sb.apply {
append(it)
append(",")
}
}
holder.hashtags.text = sb.toString()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment