Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object InspirationData {
- private val inspirationImage = intArrayOf(
- R.drawable.img_inspiration,
- R.drawable.img_inspiration
- )
- val listData: ArrayList<InspirationModel>
- get() {
- val list = arrayListOf<InspirationModel>()
- for (position in inspirationImage.indices) {
- val inspiration = InspirationModel()
- inspiration.inspirationImage = inspirationImage[position]
- list.add(inspiration)
- }
- return list
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement