Last active
December 5, 2020 04:34
-
-
Save vamsitallapudi/de197c8aa956d7804a40a656c101a451 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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