Skip to content

Instantly share code, notes, and snippets.

@mustafayigitt
Last active August 20, 2020 10:08
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 mustafayigitt/cf808d9b2de346bcc108e2856ef5c459 to your computer and use it in GitHub Desktop.
Save mustafayigitt/cf808d9b2de346bcc108e2856ef5c459 to your computer and use it in GitHub Desktop.
get mock data
package com.mustafayigit.recyclerviewexample.mockData
import com.mustafayigit.recyclerviewexample.model.ProfileData
/**
* Created By MUSTAFA
* on 26/03/2020
*/
object MockList {
fun getMockData(): List<ProfileData> {
val profileData = ProfileData(
"https://cdn.webtekno.com/media/cache/content_detail_v2/article/29121/android-kotlin-1495097437.jpg",
"User Full Name",
"User Department"
)
val profileDataList: ArrayList<ProfileData> = ArrayList()
repeat(20){
profileDataList.add(profileData)
}
return profileDataList
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment