Skip to content

Instantly share code, notes, and snippets.

@mustafayigitt
Last active Aug 20, 2020
Embed
What would you like to do?
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