Advertisement
AzisMM

InspirationData

Nov 7th, 2021
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.54 KB | None | 0 0
  1. object InspirationData {
  2.     private val inspirationImage = intArrayOf(
  3.         R.drawable.img_inspiration,
  4.         R.drawable.img_inspiration
  5.     )
  6.  
  7.     val listData: ArrayList<InspirationModel>
  8.         get() {
  9.             val list = arrayListOf<InspirationModel>()
  10.             for (position in inspirationImage.indices) {
  11.                 val inspiration = InspirationModel()
  12.                 inspiration.inspirationImage = inspirationImage[position]
  13.                 list.add(inspiration)
  14.             }
  15.             return list
  16.         }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement